SocketEventArgs

Wrapper for socket event arguments

Constructors

this
this(SocketServer!T server, SocketClient!T client, Exception error = null)

Creates a new socket event argument wrapper.

Members

Functions

resetReceive
void resetReceive(size_t cachedAmount = 0)

Resets the current receive state.

Properties

availableReceiveAmount
size_t availableReceiveAmount [@property getter]

Gets the amount of available bytes for receive.

buffer
auto buffer [@property getter]

Gets the current buffer.

client
auto client [@property getter]

Gets the client.

currentReceiveAmount
size_t currentReceiveAmount [@property getter]

Gets the current received amount of bytes.

error
auto error [@property getter]

Gets the error.

server
auto server [@property getter]

Gets the server.

Meta