SharpTox.Core.Tox.FriendSendLossyPacket C# (CSharp) Method

FriendSendLossyPacket() public method

Sends a custom lossy packet to a friend. Lossy packets are like UDP packets, they may never reach the other side, arrive more than once or arrive in the wrong order.
public FriendSendLossyPacket ( int friendNumber, byte data ) : bool
friendNumber int The friend to send the packet to.
data byte The data to send. The first byte must be in the range 200-254. The maximum length of the data is ToxConstants.MaxCustomPacketSize
return bool
        public bool FriendSendLossyPacket(int friendNumber, byte[] data)
        {
            var error = ToxErrorFriendCustomPacket.Ok;
            return FriendSendLossyPacket(friendNumber, data, out error);
        }

Same methods

Tox::FriendSendLossyPacket ( int friendNumber, byte data, ToxErrorFriendCustomPacket &error ) : bool