GenericSocket

General methods for an asynchronous socket.

Members

Aliases

localAddress
alias localAddress = address!true
Undocumented in source.
localAddressStr
alias localAddressStr = addressStr!true
Undocumented in source.
remoteAddress
alias remoteAddress = address!false
Undocumented in source.
remoteAddressStr
alias remoteAddressStr = addressStr!false
Undocumented in source.

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

address
Address address [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
addressStr
string addressStr [@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