Net::Socket

Represents a TCP socket.


Represents a TCP socket.

Methods

Net::Socket@ Accept()

int Available()

bool CanRead()

bool CanWrite()

void Close()

bool Connect(const string&in host, uint16 port)

string GetRemoteIP()

bool Listen(const string&in host, uint16 port)

double ReadDouble()

float ReadFloat()

int16 ReadInt16()

int ReadInt32()

int64 ReadInt64()

int8 ReadInt8()

bool ReadLine(string&out str)

string ReadRaw(int bytes)

uint16 ReadUint16()

uint ReadUint32()

uint64 ReadUint64()

uint8 ReadUint8()

bool Write(int8 x)

bool Write(int16 x)

bool Write(int x)

bool Write(int64 x)

bool Write(uint8 x)

bool Write(uint16 x)

bool Write(uint x)

bool Write(uint64 x)

bool Write(float x)

bool Write(double x)

bool Write(const string&in x)

bool WriteRaw(const string&in str)