Commit graph

28 commits

Author SHA1 Message Date
Sönke Ludwig
116940a5a7 Add EventDriverSockets.getLocalAddress and make parameters scope where possible. 2017-01-15 20:56:06 +01:00
Sönke Ludwig
d8f10972eb Added EventDriverSockets.setKeepAlive. 2017-01-15 17:21:18 +01:00
Sönke Ludwig
aa7b2946f3 Add shared overload of the EventDriver.events property.
This allows accessing the shared "trigger" method from a shared event driver.
2017-01-13 10:20:51 +01:00
Sönke Ludwig
7e9031439c Remove EventDriverFiles.createTemp() and add adopt() instead.
The rationale is to keep the event loop abstraction at a minimal size. createTemp(), to be generally useful, would also require a getFilename(fd) method and possibly more. adopt() on the other hand is frequently useful for wrapping other libraries.
2016-12-10 15:59:03 +01:00
Sönke Ludwig
d181a6730f Add bind address support for outgoing TCP connections. 2016-11-02 20:22:54 +01:00
Sönke Ludwig
88600c5e21 Remove stack optimizations for DNS lookups and streamline send() signature. 2016-10-25 00:12:13 +02:00
Sönke Ludwig
5cca0e863b Avoid default arguments in driver interface and streamline Handle declarations. 2016-10-24 00:11:40 +02:00
Sönke Ludwig
201e4f6077 Make all releaseRef() methods return a Boolean. 2016-10-17 21:53:30 +02:00
Sönke Ludwig
e4e78a860a Implement inotify based directory watcher. 2016-10-17 21:42:09 +02:00
Sönke Ludwig
bdaff3264f Implement listening for signals based on signalfd(). 2016-10-16 21:06:11 +02:00
Sönke Ludwig
0cce1123fc Add getaddrinfo based DNS lookup implementation. 2016-10-16 14:30:52 +02:00
Sönke Ludwig
2518a6c301 Add DNS API and update Libasync stub. 2016-10-14 22:24:31 +02:00
Sönke Ludwig
c6dec730d8 Split up PosixEventDriver into individual classes. 2016-10-12 22:59:15 +02:00
Sönke Ludwig
c4e985b73c Implement UDP socket support. 2016-10-07 12:39:38 +02:00
Sönke Ludwig
2a8c52f347 Add a thread pool based async file implementation. 2016-10-06 22:04:33 +02:00
Sönke Ludwig
49116ede13 Fix doc comment formatting. 2016-10-05 21:09:14 +02:00
Sönke Ludwig
b95c9e5bbc Remove redundancies from API function names. 2016-10-05 14:09:51 +02:00
Sönke Ludwig
80ce62aacb Name handle types, to make compiler error debugging easier. 2016-10-05 13:43:18 +02:00
Sönke Ludwig
4758f1f371 Add all remaining driver API methods. 2016-10-05 13:40:38 +02:00
Sönke Ludwig
3868ee64ce Sketch the missing driver API functions and avoid virtual function calls.
The individual interface getters are now overridden in the final sub classes to avoid virtual calls whenever the final type is used.
2016-10-05 13:15:04 +02:00
Sönke Ludwig
e3c4af8433 Split up EventDriver interface into individual sub interfaces. 2016-10-05 04:21:24 +02:00
Sönke Ludwig
32394bb4c9 Add clearExitFlag(). 2016-06-16 10:42:38 +02:00
Sönke Ludwig
f808f89e7c Fix issues for posix events and cleanup cancel semantics.
Cancelling an operation now guarantees that the callback won't be called.
2016-06-15 18:20:32 +02:00
Sönke Ludwig
5298e00c09 Remove redundant callback parameter from createTimer. 2016-06-14 09:25:06 +02:00
Sönke Ludwig
5ec6b9a5e5 Add more interface functions.
- Cancelling of socket read/write events
- Cancelling of timer waits
- Retrieving the TCP connection state
- Storing custom data together with the event structures
2016-06-14 07:57:10 +02:00
Sönke Ludwig
0b7adc993f Implement manual events in the PosixEventDriver and add waitTimer. 2016-02-03 14:21:02 +01:00
Sönke Ludwig
844e955cdb Add EventDriver.exit and move all event callback parameters to the end. 2016-01-27 11:02:54 +01:00
Sönke Ludwig
2a926d87aa Initial version with sone partial Posix implementations. 2016-01-11 21:33:49 +01:00