friend_send_lossless_packet


Description:

public bool friend_send_lossless_packet (uint32 friend_number, uint8[] data, out ErrFriendCustomPacket error = null)

Send a custom lossless packet to a friend.

The first byte of data must be in the range 160-191. Maximum length of a custom packet is MAX_CUSTOM_PACKET_SIZE.

Lossless packet behaviour is comparable to TCP (reliability, arrive in order) but with packets instead of a stream.

Parameters:

friend_number

The friend number of the friend this lossless packet should be sent to.

data

A byte array containing the packet data.

Returns:

true on success.