Net::Socket Class

The Socket class provides a way to perform inter process communication over the network. It can be used to connect to a remote server, listen for incoming connections, and send and receive data.

Behaviors

Net::Socket()
~Net::Socket()

Methods

bool Connect(const string&in host, uint16 port, uint timeout = Math :: UINT_MAX)
bool Listen(const string&in host, uint16 port)
string ReadString(uint bytes)
array<uint8>@ ReadBytes(uint bytes)
int8 ReadInt8()
uint8 ReadUint8()
int16 ReadInt16()
uint16 ReadUint16()
int ReadInt32()
uint ReadUint32()
int64 ReadInt64()
uint64 ReadUint64()
float ReadFloat()
double ReadDouble()
bool Write(const string&in data)
bool Write(const array<uint8>&in data)
bool Write(int8 value)
bool Write(uint8 value)
bool Write(int16 value)
bool Write(uint16 value)
bool Write(int value)
bool Write(uint value)
bool Write(int64 value)
bool Write(uint64 value)
bool Write(float value)
bool Write(double value)
Net::Socket@ Accept(uint timeoutMs = Math :: UINT_MAX)
void set_NoDelay(bool value)