socket_send2

Синтаксис

native socket_send2(_socket, const _data[], _length);

Употреба

_socket
Socket descriptor
_data
Array with the data to send
_length
Length of the array

Описание

Sends data that can contain null bytes.

Забележка

The amount of bytes that end up being sent may be lower than the total length of the array,
check the return value and send the rest if needed.

Забележка

strlen(_data) will return the wrong length if the array contains null bytes.

Връщаща стойност

Amount of bytes sent
-1 on failure