Example #1
0
        private void OutputKcp(byte[] data, int size, object ud)
        {
            var binary = new byte[size];

            Buffer.BlockCopy(data, 0, binary, 0, size);
            _udpClient.BeginSend(binary, binary.Length, new AsyncCallback(SendCallback), _udpClient);
        }