SocketServer.Listener

Class that actually performs listening on a certain address family

Constructors

this
this(Socket conn)
Undocumented in source.

Members

Functions

closeListener
void closeListener()
Undocumented in source. Be warned that the author may not have intended to support it.
onError
void onError(string reason)

Called when an error occurs on the socket.

onReadable
void onReadable()

Called when a socket is readable.

onWritable
void onWritable()

Called when a socket is writable.

Inherited Members

From GenericSocket

__anonymous
mixin SocketMixin

Declares notifyRead and notifyWrite.

conn
Socket conn;

The socket this class wraps.

socket
Socket socket [@property getter]

Retrieve the socket class this class wraps.

onReadable
void onReadable()
Undocumented in source. Be warned that the author may not have intended to support it.
onWritable
void onWritable()
Undocumented in source. Be warned that the author may not have intended to support it.
onError
void onError(string reason)
Undocumented in source. Be warned that the author may not have intended to support it.
address
Address address [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
localAddress
alias localAddress = address!true
Undocumented in source.
remoteAddress
alias remoteAddress = address!false
Undocumented in source.
addressStr
string addressStr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
localAddressStr
alias localAddressStr = addressStr!true
Undocumented in source.
remoteAddressStr
alias remoteAddressStr = addressStr!false
Undocumented in source.
daemonRead
bool daemonRead;

Don't block the process from exiting, even if the socket is ready to receive data. TODO: Not implemented with libev

daemonWrite
bool daemonWrite;

Don't block the process from exiting, even if the socket is ready to send data. TODO: Not implemented with libev

daemon
deprecated alias daemon = daemonRead
Undocumented in source.
setKeepAlive
void setKeepAlive(bool enabled, int time, int interval)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta