- acquireTimer
void acquireTimer(size_t timer_id)
Undocumented in source. Be warned that the author may not have intended to support it.
- connectTCP
Libevent2TCPConnection connectTCP(NetworkAddress addr, NetworkAddress bind_addr)
Undocumented in source. Be warned that the author may not have intended to support it.
- createFileDescriptorEvent
Libevent2FileDescriptorEvent createFileDescriptorEvent(int fd, FileDescriptorEvent.Trigger events, FileDescriptorEvent.Mode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
- createManualEvent
Libevent2ManualEvent createManualEvent()
Undocumented in source. Be warned that the author may not have intended to support it.
- createTimer
size_t createTimer(void delegate() @(safe) callback)
Undocumented in source. Be warned that the author may not have intended to support it.
- dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
- exitEventLoop
void exitEventLoop()
Undocumented in source. Be warned that the author may not have intended to support it.
- isTimerPending
bool isTimerPending(size_t timer_id)
Undocumented in source. Be warned that the author may not have intended to support it.
- listenTCP
Libevent2TCPListener listenTCP(ushort port, void delegate(TCPConnection conn) @(safe) connection_callback, string address, TCPListenOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.
- listenUDP
Libevent2UDPConnection listenUDP(ushort port, string bind_address)
Undocumented in source. Be warned that the author may not have intended to support it.
- openFile
ThreadedFileStream openFile(Path path, FileMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
- processEvents
bool processEvents()
Undocumented in source. Be warned that the author may not have intended to support it.
- rearmTimer
void rearmTimer(size_t timer_id, Duration dur, bool periodic)
Undocumented in source. Be warned that the author may not have intended to support it.
- releaseTimer
void releaseTimer(size_t timer_id)
Undocumented in source. Be warned that the author may not have intended to support it.
- resolveHost
NetworkAddress resolveHost(string host, ushort family, bool use_dns)
Undocumented in source. Be warned that the author may not have intended to support it.
- runEventLoop
int runEventLoop()
Undocumented in source. Be warned that the author may not have intended to support it.
- runEventLoopOnce
int runEventLoopOnce()
Undocumented in source. Be warned that the author may not have intended to support it.
- stopTimer
void stopTimer(size_t timer_id)
Undocumented in source. Be warned that the author may not have intended to support it.
- waitTimer
void waitTimer(size_t timer_id)
Undocumented in source. Be warned that the author may not have intended to support it.
- watchDirectory
DirectoryWatcher watchDirectory(Path path, bool recursive)
Undocumented in source. Be warned that the author may not have intended to support it.
- dispose
void dispose()
Frees all resources of the driver and prepares it for consumption by the GC.
- runEventLoop
int runEventLoop()
- runEventLoopOnce
int runEventLoopOnce()
Undocumented in source.
- processEvents
bool processEvents()
Processes all outstanding events if any, does not block.
- exitEventLoop
void exitEventLoop()
Exits any running event loop.
- openFile
FileStream openFile(Path path, FileMode mode)
Opens a file on disk with the speficied file mode.
- watchDirectory
DirectoryWatcher watchDirectory(Path path, bool recursive)
Starts watching a directory for changes.
- resolveHost
NetworkAddress resolveHost(string host, ushort family, bool use_dns)
Resolves the given host name or IP address string.
- connectTCP
TCPConnection connectTCP(NetworkAddress address, NetworkAddress bind_address)
Establiches a tcp connection on the specified host/port.
- listenTCP
TCPListener listenTCP(ushort port, void delegate(TCPConnection conn) @(safe) conn_callback, string bind_address, TCPListenOptions options)
Listens on the specified port and interface for TCP connections.
- listenUDP
UDPConnection listenUDP(ushort port, string bind_address)
Creates a new UDP socket and sets the specified address/port as the destination for packets.
- createManualEvent
ManualEvent createManualEvent()
Creates a new manually triggered event.
- createFileDescriptorEvent
FileDescriptorEvent createFileDescriptorEvent(int file_descriptor, FileDescriptorEvent.Trigger triggers, FileDescriptorEvent.Mode mode)
Creates an event for waiting on a non-bocking file handle.
- createTimer
size_t createTimer(void delegate() @(safe) callback)
- acquireTimer
void acquireTimer(size_t timer_id)
Increases the reference count by one.
- releaseTimer
void releaseTimer(size_t timer_id)
Decreases the reference count by one.
- isTimerPending
bool isTimerPending(size_t timer_id)
Queries if the timer is currently active.
- rearmTimer
void rearmTimer(size_t timer_id, Duration dur, bool periodic)
Resets the timeout of the timer.
- stopTimer
void stopTimer(size_t timer_id)
- waitTimer
void waitTimer(size_t timer_id)
Waits for the pending timer to expire.