TcpConnection

An asynchronous TCP connection.

Constructors

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

Default constructor

Members

Aliases

connect
alias connect = SocketConnection.connect

Functions

connect
void connect(string host, ushort port)

Start establishing a connection.

Inherited Members

From SocketConnection

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

connect
void connect(AddressInfo[] addresses)

Start establishing a connection.

Meta