ClientSocket

Undocumented in source.

Constructors

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

Members

Functions

close
void close()

Closes connection.

connect
void connect(string ip, ushort port)

Connects to a server.

receive
size_t receive(ubyte[] data)

Receives data.

send
void send(T message)

Sends data as struct messages.

Manifest constants

PACKET_SIZE
enum PACKET_SIZE;
Undocumented in source.

Properties

connected
bool connected [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onDataEvent
OnDataEvent onDataEvent [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
onDisconnectedEvent
OnDisconnectedEvent onDisconnectedEvent [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
socket
Socket socket [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta