GenericSocket

General methods for an asynchronous socket.

Members

Functions

onError
void onError(string reason)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
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.

Mixins

__anonymous
mixin SocketMixin

Declares notifyRead and notifyWrite.

Properties

localAddress
Address localAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
localAddressStr
string localAddressStr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
remoteAddress
Address remoteAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
remoteAddressStr
string remoteAddressStr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
socket
Socket socket [@property getter]

Retrieve the socket class this class wraps.

Variables

conn
Socket conn;

The socket this class wraps.

daemon
bool daemon;

Don't block the process from exiting. TODO: Not implemented with libev

Mixed In Members

From mixin SocketMixin

notifyRead
bool notifyRead;

Interested in read notifications (onReadable)?

notifyWrite
bool notifyWrite;

Interested in write notifications (onWritable)?

Meta