Exemplo n.º 1
0
 public void SendMessage(string address, int port, byte[] data)
 {
     PacketData data2 = new PacketData {
         address = address,
         data = data,
         port = port
     };
     this.mPacketQueue.Enqueue(data2);
     mEventQueue.Set();
 }
Exemplo n.º 2
0
 public void SendMessage(byte[] data, string address, int port)
 {
     if ((this.mUdpClient != null) && this.mIsBound)
     {
         PacketData data2 = new PacketData {
             address = address,
             data = data,
             port = port
         };
         this.mPacketQueue.Enqueue(data2);
         this.mEventQueue.Set();
     }
 }