private void Send(int messageID, object data, IPEndPoint remoteIP) { SendCell cell = new SendCell(messageID, data); byte[] buffer = cell.ToBuffer(); UdpPeer.Send(cell, remoteIP); }
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); }