AsyncEvent

Takes a raw kernel-emitted file descriptor and registers its events into the event loop for async processing NOTE: If it's a socket, it must be made non-blocking before being passed here. NOTE: By default dispatched events are READ, WRITE, and ERROR; enabling 'stateful' adds CONNECT and CLOSE

Constructors

this
this(EventLoop evl, fd_t ev_id, bool stateful)

Members

Functions

kill
bool kill(bool forced)

Removes the event from the event loop, closing the file descriptor if necessary, and cleans up the underlying resources.

run
bool run(void delegate(EventCode) del)

Registers the signal handler in the event loop

Mixins

__anonymous
mixin COSocketMixins
Undocumented in source.

Properties

error
string error [@property getter]

Human-readable string describing the error

hasError
bool hasError [@property getter]
id
fd_t id [@property getter]
id
fd_t id [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
owner
Thread owner [@property getter]

Returns the Thread that created this object.

stateful
bool stateful [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
stateful
bool stateful [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
status
StatusInfo status [@property getter]

Used to diagnose errors when run() or kill() returns false

Mixed In Members

From mixin COSocketMixins

CleanupData
struct CleanupData
Undocumented in source.
disconnecting
bool disconnecting [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
disconnecting
bool disconnecting [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
connected
bool connected [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
connected
bool connected [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
writeBlocked
bool writeBlocked [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
writeBlocked
bool writeBlocked [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
readBlocked
bool readBlocked [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
readBlocked
bool readBlocked [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
evInfo
EventInfo* evInfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
evInfo
EventInfo* evInfo [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta