Interface EventDriver
Interface for all evented I/O implementations.
This is the low level interface for all event based functionality. It is not intended to be used directly by users of the library.
Methods
Name | Description |
---|---|
acquireTimer
|
Increases the reference count by one. |
connectTCP
|
Establiches a tcp connection on the specified host/port. |
createFileDescriptorEvent
|
Creates an event for waiting on a non-bocking file handle. |
createManualEvent
|
Creates a new manually triggered event. |
createTimer
|
Creates a new timer. |
exitEventLoop
|
Exits any running event loop. |
isTimerPending
|
Queries if the timer is currently active. |
listenTCP
|
Listens on the specified port and interface for TCP connections.
|
listenUDP
|
Creates a new UDP socket and sets the specified address/port as the destination for packets.
|
openFile
|
Opens a file on disk with the speficied file mode .
|
processEvents
|
Processes all outstanding events if any, does not block. |
rearmTimer
|
Resets the timeout of the timer. |
releaseTimer
|
Decreases the reference count by one. |
resolveHost
|
Resolves the given host name or IP address string.
|
runEventLoop
|
Starts the event loop. |
runEventLoopOnce
|
|
stopTimer
|
Stops the timer. |
waitTimer
|
Waits for the pending timer to expire. |
watchDirectory
|
Starts watching a directory for changes. |
Aliases
Name | Description |
---|---|
connectTcp
|
Deprecated compatibility alias |
createSignal
|
Deprecated compatibility alias |
listenTcp
|
Deprecated compatibility alias |
listenUdp
|
Deprecated compatibility alias |
Authors
Sönke Ludwig
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.