TcpConnection

An asynchronous TCP connection.

Constructors

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

Default constructor

Members

Functions

connect
void connect(string host, ushort port)
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;

Queue of addresses to try connecting to.

Inherited Members

From StreamConnection

onWritable
void onWritable()

Called when a socket is writable.

Meta