AsyncUDSConnection

Constructors

this
this(EventLoop evl, fd_t preInitializedSocket)

Members

Functions

kill
bool kill(bool forced)

Removes the connection from the event loop, closing it if necessary, and cleans up the underlying resources.

recv
uint recv(ubyte[] ub)

Receive data from the underlying stream. To be used when EventCode.READ is received by the callback handler. IMPORTANT: This must be called until is returns a lower value than the buffer!

run
bool run(void delegate(EventCode) del)
send
uint send(ubyte[] ub)

Send data through the underlying stream by moving it into the OS buffer.

Mixins

__anonymous
mixin DefStatus
Undocumented in source.

Properties

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

Returns true if this connection was accepted by an AsyncUDSListener instance.

isConnected
bool isConnected [@property getter]

Returns false if the connection has gone.

peer
UnixAddress peer [@property getter]
peer
UnixAddress peer [@property setter]
preInitializedSocket
fd_t preInitializedSocket [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
socket
fd_t socket [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_evLoop
EventLoop m_evLoop;
Undocumented in source.
m_event
AsyncEvent m_event;
Undocumented in source.

Mixed In Members

From mixin DefStatus

hasError
bool hasError [@property getter]

Check this property to make sure the event loop hasn't failed

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

Returns a human-readable error message from the underlying operating system.

Meta