ObjFW  History of src/OFStreamObserver.h of d5c4406548a77929

History of the file that is called src/OFStreamObserver.h at check-in d5c4406548a77929

2014-01-28
22:50
Deleted: Rename OFStreamObserver -> OFKernelEventObserver (check-in: [96e20b8093] user: js, branch: trunk, size: 0)
2014-01-25
19:33
[268952c0f7] part of check-in [81d47f4398] Move socket includes and helpers to separate files

The new file socket.h includes all headers required for sockets on the
used platform, while the file socket_helpers.h defines the BSD API
functions to the platform specific functions if necessary.

This cleans up the classes dealing with sockets a lot and also reduces
code duplication. (check-in: [81d47f4398] user: js, branch: trunk, size: 5771) [annotate] [blame] [check-ins using] [diff]

2014-01-16
23:09
[de0e796056] part of check-in [dc31ce3d34] Add of_time_interval_t.

This is used instead for time intervals now instead of doubles. (check-in: [dc31ce3d34] user: js, branch: trunk, size: 6000) [annotate] [blame] [check-ins using] [diff]

2014-01-04
00:24
[1c16f3d3a2] part of check-in [3b97fc3cd9] Update copyright. (check-in: [3b97fc3cd9] user: js, branch: trunk, size: 5988) [annotate] [blame] [check-ins using] [diff]
2013-08-15
19:00
[5f262f5416] part of check-in [1d7a1cbca0] Move private methods into private headers. (check-in: [1d7a1cbca0] user: js, branch: trunk, size: 5982) [annotate] [blame] [check-ins using] [diff]
2013-06-11
23:33
[1ad6295688] part of check-in [ffb91daffe] Initial sockets support for the Wii.

Not functional yet due to bugs in the SDK.
Bugs found so far:

* Binding to port 0 fails instead of choosing a free port.
* gethostbyname() does not work for IPs.
* getsockname() is missing.
* struct sockaddr_storage is missing.

I have not decided yet whether I fix those bugs in the SDK (I already
implemented getsockname() and added struct sockaddr_stroage and it seems
to work) or if I work around them in ObjFW. This will mainly depend on
how cooperative the developers of the Wii SDK are. (check-in: [ffb91daffe] user: js, branch: trunk, size: 6235) [annotate] [blame] [check-ins using] [diff]

2013-05-22
18:42
[9d097b3bbf] part of check-in [896084c340] Check for more socket-related headers / functions. (check-in: [896084c340] user: js, branch: trunk, size: 6154) [annotate] [blame] [check-ins using] [diff]
2013-04-30
22:47
[968a82ac04] part of check-in [ab9ad6e515] observeWithTimeout: -> observeForTimeInterval:. (check-in: [ab9ad6e515] user: js, branch: trunk, size: 6086) [annotate] [blame] [check-ins using] [diff]
2013-04-26
19:42
[7fc7495bc7] part of check-in [590c377d8a] Make it possible to disable sockets. (check-in: [590c377d8a] user: js, branch: trunk, size: 5794) [annotate] [blame] [check-ins using] [diff]
2013-04-07
21:21
[4cd46fa418] part of check-in [ec6b265428] Fix Win32 #include hell. (check-in: [ec6b265428] user: js, branch: trunk, size: 5732) [annotate] [blame] [check-ins using] [diff]
2013-03-04
17:20
[36adc90c29] part of check-in [c5ef582958] Replace BOOL with bool.

The only places where BOOL is left are those where they are required by
the ABI. (check-in: [c5ef582958] user: js, branch: trunk, size: 5814) [annotate] [blame] [check-ins using] [diff]

2013-02-12
18:22
[cdfadcf2ee] part of check-in [e40729d406] Prefix all ivars with an underscore. (check-in: [e40729d406] user: js, branch: trunk, size: 5814) [annotate] [blame] [check-ins using] [diff]
2013-01-12
20:53
[b07d550270] part of check-in [b8ce2359f3] Clean up the feature #ifdef mess. (check-in: [b8ce2359f3] user: js, branch: trunk, size: 5803) [annotate] [blame] [check-ins using] [diff]
20:21
[16966241ea] part of check-in [85b8efadbc] Fix --disable-threads. (check-in: [85b8efadbc] user: js, branch: trunk, size: 5793) [annotate] [blame] [check-ins using] [diff]
2013-01-10
22:52
[a69d16c5a8] part of check-in [365d74aa27] Fix all Doxygen warnings. (check-in: [365d74aa27] user: js, branch: trunk, size: 5743) [annotate] [blame] [check-ins using] [diff]
2013-01-09
22:24
[7a6891cf02] part of check-in [813c00ccf0] Update copyright. (check-in: [813c00ccf0] user: js, branch: trunk, size: 5719) [annotate] [blame] [check-ins using] [diff]
2012-12-20
16:42
[0ddbd1118a] part of check-in [89177dcd09] Remove dummy implementations for formal protocols. (check-in: [89177dcd09] user: js, branch: trunk, size: 5713) [annotate] [blame] [check-ins using] [diff]
2012-10-29
13:37
[7f3a6cb32d] part of check-in [1bcd4b3d46] Documentation improvements (add references). (check-in: [1bcd4b3d46] user: js, branch: 0.7, size: 5790) [annotate] [blame] [check-ins using] [diff]
13:35
[fa395911d4] part of check-in [e685b742d9] Documentation improvements (add references). (check-in: [e685b742d9] user: js, branch: trunk, size: 5790) [annotate] [blame] [check-ins using] [diff]
2012-10-28
12:38
[714bdc609e] part of check-in [1ad9565253] Switch to a headerdoc-compatible doc format. (check-in: [1ad9565253] user: js, branch: trunk, size: 5782) [annotate] [blame] [check-ins using] [diff]
2012-10-09
15:07
[85b360a246] part of check-in [fb515e8e24] Make use of instancetype. (check-in: [fb515e8e24] user: js, branch: trunk, size: 5782) [annotate] [blame] [check-ins using] [diff]
2012-09-16
15:27
[f66d4f6eb3] part of check-in [c137da5e5b] Prefix all private methods with OF_. (check-in: [c137da5e5b] user: js, branch: trunk, size: 5768) [annotate] [blame] [check-ins using] [diff]
2012-09-12
06:00
[a4947834b1] part of check-in [acb6598856] OFStreamObserver: Add -[cancel]. (check-in: [acb6598856] user: js, branch: trunk, size: 5756) [annotate] [blame] [check-ins using] [diff]
06:00
[8202cb76d9] part of check-in [3c99aa51da] OFStreamObserver: Take a double as timeout. (check-in: [3c99aa51da] user: js, branch: trunk, size: 5462) [annotate] [blame] [check-ins using] [diff]
2012-08-19
21:27
[8754133d3a] part of check-in [bab9dd49fe] Add more ARC type qualifiers. (check-in: [bab9dd49fe] user: js, branch: trunk, size: 5464) [annotate] [blame] [check-ins using] [diff]
2012-02-29
21:12
[d71501a357] part of check-in [95db0335d8] \cond internal is not needed anymore. (check-in: [95db0335d8] user: js, branch: 0.6, size: 5444) [annotate] [blame] [check-ins using] [diff]
2012-01-05
00:56
[4c22db2fe5] part of check-in [ce70e17b38] Update copyright. (check-in: [ce70e17b38] user: js, branch: trunk, size: 5476) [annotate] [blame] [check-ins using] [diff]
2011-10-24
18:28
[b5736c8412] part of check-in [87cd99ff88] Don't retain delegates to prevent reference cycles. (check-in: [87cd99ff88] user: js, branch: trunk, size: 5470) [annotate] [blame] [check-ins using] [diff]
2011-09-28
14:38
[c3f9253037] part of check-in [9e82f99f09] Various small bugfixes. (check-in: [9e82f99f09] user: js, branch: trunk, size: 5470) [annotate] [blame] [check-ins using] [diff]
2011-09-22
03:10
[429a39bc00] part of check-in [1edb3cb8c7] Don't use EV_RECEIPT.

EV_RECEIPT is not available on all systems implementing kqueue. (check-in: [1edb3cb8c7] user: js, branch: trunk, size: 5470) [annotate] [blame] [check-ins using] [diff]

2011-09-20
18:40
[b87bb931e4] part of check-in [47caef4f8a] OFStreamObserver improvements.

* Make it possible to close a stream before the add/remove queue has
been processed.
* The actual implementations don't need to handle OFStreams now, but
get the file descriptor instead.
* Use an OFMutex instead of @synchronized. (check-in: [47caef4f8a] user: js, branch: trunk, size: 5276) [annotate] [blame] [check-ins using] [diff]

2011-09-19
16:22
[aece4ad798] part of check-in [535c2d5d9b] Make using -[tryReadLine] + OFStreamObserver safe.

This makes it impossible for the developer to accidentally create a DoS.
When data has been received after calling -[tryReadLine] and the string
is still incomplete, -[streamIsReadyForReading:] will not be called
anymore until new data has been received, thus preventing spinning in a
loop. (check-in: [535c2d5d9b] user: js, branch: trunk, size: 5199) [annotate] [blame] [check-ins using] [diff]

12:44
[753eef6385] part of check-in [c279948fb8] Nicer OFStreamObserver API. (check-in: [c279948fb8] user: js, branch: trunk, size: 4769) [annotate] [blame] [check-ins using] [diff]
12:07
[d581b21593] part of check-in [d3f6cf9293] Improve OFStreamObserver. (check-in: [d3f6cf9293] user: js, branch: trunk, size: 4819) [annotate] [blame] [check-ins using] [diff]
2011-09-11
17:09
[05b35ad045] part of check-in [8d554c0421] Documentation improvements. (check-in: [8d554c0421] user: js, branch: trunk, size: 4757) [annotate] [blame] [check-ins using] [diff]
2011-09-10
19:37
[70764cc054] part of check-in [b1ffd7732a] Make OFStreamObserver an abstract class. (check-in: [b1ffd7732a] user: js, branch: trunk, size: 4580) [annotate] [blame] [check-ins using] [diff]
2011-04-22
21:08
[923c073c02] part of check-in [fb95acc8ab] More style improvements. (check-in: [fb95acc8ab] user: js, branch: trunk, size: 4815) [annotate] [blame] [check-ins using] [diff]
2011-04-06
20:07
[ad26e6202d] part of check-in [a10390bfd6] Port recent OFStreamObserver changes to Win32. (check-in: [a10390bfd6] user: js, branch: trunk, size: 4815) [annotate] [blame] [check-ins using] [diff]
2011-04-01
22:14
[7b1f8623a5] part of check-in [a61ab37726] Cancel the currently blocking -[observe] when the stream set is changed.

Not working on win32 yet, it will be ported to it later as it's not that
easy there, since select() can only observe sockets. (check-in: [a61ab37726] user: js, branch: trunk, size: 4739) [annotate] [blame] [check-ins using] [diff]

16:54
[abbf9520ca] part of check-in [35aab77af3] Make OFStreamObserver thread-safe.

It does not cancel the currently running -[observe] yet when changing
the set of streams to observe. (check-in: [35aab77af3] user: js, branch: trunk, size: 4106) [annotate] [blame] [check-ins using] [diff]

2011-03-30
00:03
[7555d40ac1] part of check-in [13a4dee1da] A few win32 fixes. (check-in: [13a4dee1da] user: js, branch: trunk, size: 4115) [annotate] [blame] [check-ins using] [diff]
2011-03-23
01:06
[e29e85d1f8] part of check-in [23acf38456] Make more use of the OFObject protocol. (check-in: [23acf38456] user: js, branch: trunk, size: 4073) [annotate] [blame] [check-ins using] [diff]
2011-03-22
00:55
[8d506e5d4b] part of check-in [6d4dfb5bc7] Add -Wshorten-64-to-32. (check-in: [6d4dfb5bc7] user: js, branch: trunk, size: 3985) [annotate] [blame] [check-ins using] [diff]
2011-03-21
13:26
[5875ec6cd6] part of check-in [0c9206532f] Make use of optional protocols, if available. (check-in: [0c9206532f] user: js, branch: trunk, size: 3982) [annotate] [blame] [check-ins using] [diff]
2011-01-01
20:19
[2d015e7afd] part of check-in [da6b3d26cb] Change license. (check-in: [da6b3d26cb] user: js, branch: trunk, size: 3932) [annotate] [blame] [check-ins using] [diff]
2010-11-28
16:02
[a9969dae8b] part of check-in [4d013fb14a] Rename +[streamObserver] to +[observer] in OFStreamObserver. (check-in: [4d013fb14a] user: js, branch: trunk, size: 3676) [annotate] [blame] [check-ins using] [diff]
2010-11-24
19:45
[3a3ac21b99] part of check-in [0769e074eb] Documentation improvements. (check-in: [0769e074eb] user: js, branch: trunk, size: 3540) [annotate] [blame] [check-ins using] [diff]
2010-11-06
13:34
[1bd2857348] part of check-in [b7767021ca] Handle stream exceptions in OFStreamObserver. (check-in: [b7767021ca] user: js, branch: trunk, size: 3378) [annotate] [blame] [check-ins using] [diff]
2010-10-24
12:54
[ef35b95705] part of check-in [b5da54000d] Add -[streamDidReceiveException:] to OFStreamObserverDelegate. (check-in: [b5da54000d] user: js, branch: trunk, size: 3317) [annotate] [blame] [check-ins using] [diff]
2010-09-19
02:52
[572eeb8e96] part of check-in [b554732eae] Improve OFStreamObserver.

It also looks at the cache of each stream now and does not block if
there is still data in the cache. (check-in: [b554732eae] user: js, branch: trunk, size: 3104) [annotate] [blame] [check-ins using] [diff]

2010-09-05
23:19
[943d945622] part of check-in [e2b06423e0] Replace OFObject* with id in many places.

We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (check-in: [e2b06423e0] user: js, branch: trunk, size: 3020) [annotate] [blame] [check-ins using] [diff]

14:45
[31983ae5e4] part of check-in [f0bd8d731e] Only define _WIN32_WINNT if it is not already defined. (check-in: [f0bd8d731e] user: js, branch: trunk, size: 3048) [annotate] [blame] [check-ins using] [diff]
2010-07-07
20:48
Added: [c015b1c190] part of check-in [52dcb22b8c] Rename OFSocketObserver to OFStreamObserver and make it more general. (check-in: [52dcb22b8c] user: js, branch: trunk, size: 3017) [annotate] [blame] [check-ins using]