SocketConnection

An asynchronous socket-based connection.

Constructors

this
this(Socket conn)
Undocumented in source.
this
this()

Default constructor

Members

Functions

connect
void connect(AddressInfo[] addresses)

Start establishing a connection.

doReceive
sizediff_t doReceive(void[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
doSend
sizediff_t doSend(void[] buffer)
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.

tryNextAddress
void tryNextAddress()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

addressQueue
AddressInfo[] addressQueue;
Undocumented in source.

Inherited Members

From StreamConnection

onWritable
void onWritable()

Called when a socket is writable.

Meta