Exemple #1
0
        private void Send(int messageID, object data, IPEndPoint remoteIP)
        {
            SendCell cell = new SendCell(messageID, data);

            byte[] buffer = cell.ToBuffer();
            UdpPeer.Send(cell, remoteIP);
        }
Exemple #2
0
        public void Send(int messageID, object data, IPEndPoint remoteIP)
        {
            SendCell cell = new SendCell(messageID, data);

            byte[] buffer = cell.ToBuffer();
            UdpClient.BeginSend(
                buffer,
                buffer.Length,
                remoteIP,
                new AsyncCallback(SendCallback),
                null);
        }