ObjFW  Check-in [d16ad96cbd]

Overview
Comment:OFStream: Use a delegate for async operations

The target / selector approach had several drawbacks:

* It was inconvenient to use, as for every read or write, a target,
selector and context would need to be specified.
* It lacked any kind of type-safety and would not even warn about using
a callback method with the wrong number of parameters.
* It encouraged using a different callback method for each read or
write call, which results in code that is hard to follow and also
slower (as it needs to recreate the async operation with a new
callback every time).

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d16ad96cbdf74ff1725ee86df306b24dc2fde9c3b4a1c0776d162a1cbf0a2f54
User & Date: js on 2018-12-07 01:33:47
Other Links: manifest | tags
Context
2018-12-08
16:05
OFTCPSocket: Use a delegate for async operations check-in: 27153bf8cf user: js tags: trunk
2018-12-07
01:33
OFStream: Use a delegate for async operations check-in: d16ad96cbd user: js tags: trunk
2018-12-02
20:11
OFSystemInfo: Work around GCC picking ebx for "=r" check-in: 2fc1016631 user: js tags: trunk
Changes