vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Interface EventDriver

Interface for all evented I/O implementations.

interface EventDriver ;

This is the low level interface for all event based functionality. It is not intended to be used directly by users of the library.


acquireTimerIncreases the reference count by one.
connectTCPEstabliches a tcp connection on the specified host/port.
createFileDescriptorEventCreates an event for waiting on a non-bocking file handle.
createManualEventCreates a new manually triggered event.
createTimerCreates a new timer.
disposeFrees all resources of the driver and prepares it for consumption by the GC.
exitEventLoopExits any running event loop.
isTimerPendingQueries if the timer is currently active.
listenTCPListens on the specified port and interface for TCP connections.
listenUDPCreates a new UDP socket and sets the specified address/port as the destination for packets.
openFileOpens a file on disk with the speficied file mode.
processEventsProcesses all outstanding events if any, does not block.
rearmTimerResets the timeout of the timer.
releaseTimerDecreases the reference count by one.
resolveHostResolves the given host name or IP address string.
runEventLoopStarts the event loop.
stopTimerStops the timer.
waitTimerWaits for the pending timer to expire.
watchDirectoryStarts watching a directory for changes.

Sönke Ludwig


© 2012-2015 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.