예제 #1
0
 public void SendData(Packet data)
 {
     if (endPoint == null)
     {
         return;
     }
     Sender.AddUdpData(endPoint, data.ToArray());
 }
예제 #2
0
        public void SendData(Packet data)
        {
            if (socket == null)
            {
                return;
            }

            data.InsertInt(id);
            Sender.AddUdpData(endPoint, data.ToArray());
        }