WinRTEventDriver

Undocumented in source.

Constructors

this
this(DriverCore core)
Undocumented in source.

Members

Functions

connectTCP
WinRTTCPConnection connectTCP(string host, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
createManualEvent
WinRTManualEvent createManualEvent()
Undocumented in source. Be warned that the author may not have intended to support it.
createTimer
WinRTTimer createTimer(void delegate() 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.
listenTCP
TCPListener listenTCP(ushort port, void delegate(TCPConnection conn) conn_callback, string bind_address, TCPListenOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.
listenUDP
UDPConnection listenUDP(ushort port, string bind_address)
Undocumented in source. Be warned that the author may not have intended to support it.
openFile
FileStream 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.
processEventsInternal
bool processEventsInternal(CoreProcessEventsOption mode)
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.
watchDirectory
DirectoryWatcher watchDirectory(Path path, bool recursive)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From EventDriver

dispose
void dispose()

Frees all resources of the driver and prepares it for consumption by the GC.

runEventLoop
int runEventLoop()

Starts the event loop.

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)

Creates a new timer.

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)

Stops the timer.

waitTimer
void waitTimer(size_t timer_id)

Waits for the pending timer to expire.

Meta