Documentation

Net::Socket::Write

Method in Socket

bool Write(int8)

Writes an 8 bit signed integer to the socket. Returns false if the write did not succeed.

int8

Returns bool
bool Write(int16)

Writes a 16 bit signed integer to the socket. Returns false if the write did not succeed.

int16

Returns bool
bool Write(int)

Writes a 32 bit signed integer to the socket. Returns false if the write did not succeed.

int

Returns bool
bool Write(int64)

Writes a 64 bit signed integer to the socket. Returns false if the write did not succeed.

int64

Returns bool
bool Write(uint8)

Writes an 8 bit unsigned integer to the socket. Returns false if the write did not succeed.

uint8

Returns bool
bool Write(uint16)

Writes a 16 bit unsigned integer to the socket. Returns false if the write did not succeed.

uint16

Returns bool
bool Write(uint)

Writes a 32 bit unsigned integer to the socket. Returns false if the write did not succeed.

uint

Returns bool
bool Write(uint64)

Writes a 64 bit unsigned integer to the socket. Returns false if the write did not succeed.

uint64

Returns bool
bool Write(float)

Writes a 32 bit float to the socket. Returns false if the write did not succeed.

float

Returns bool
bool Write(double)

Writes a 64 bit double to the socket. Returns false if the write did not succeed.

double

Returns bool
bool Write(const string&in)

Writes a 32 bit unsigned integer for the length of the string to the socket, followed by the actual string. Returns false if the write did not succeed. Note that this behavior differs from WriteRaw().

Returns bool
bool Write(MemoryBuffer&in, uint64 size = 0)

Reads a number of bytes from the given MemoryBuffer and writes them to the socket.

MemoryBuffer

uint64 size

The number of bytes to read from the MemoryBuffer. If this is 0, the remainder of the available bytes is used.

Returns bool