AsyncUDSConnection

Constructors

this
this(EventLoop evl, fd_t preInitializedSocket = fd_t.init)

Members

Functions

kill
bool kill(bool forced = false)

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

recv
long recv(ref 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
long send(in ubyte[] ub)

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

Properties

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]

Meta