SocketConnection

Constructors

this
this(Socket socket)
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

close
void close()

Closes the connection

empty
bool empty()

Determines whether there is no more data to be received

isAlive
bool isAlive()

Determines whether the socket is still alive

localAddress
Address localAddress()
popCurrentError
string popCurrentError()
receive
ptrdiff_t receive(void[] buffer)

Reads received data into the provided buffer

receiveAll
T[] receiveAll(T[] buffer)

Fills the whole provided buffer with received data

receiveSlice
T[] receiveSlice(T[] buffer)

Reads received data into the provided buffer

remoteAddress
Address remoteAddress()
send
ptrdiff_t send(const(void)[] buffer)

Sends data on the connection

sendAll
void sendAll(const(void)[] buffer)

Sends all data from the passed slice on the connection

timeout
long timeout()
timeout
void timeout(long seconds)

Meta