示例#1
0
 public Client(IPEndPoint groupEndPoint)
 {
     myGuid    = Guid.NewGuid();
     UdpSender = new UdpClient();
     UdpSender.AllowReusePort();
     this.groupEndPoint = groupEndPoint;
 }
示例#2
0
        public Server()
        {
            copies   = new ConcurrentDictionary <Guid, IPAddress>();
            timeouts = new ConcurrentDictionary <Guid, int>();

            UdpReceiver = new UdpClient();
            UdpReceiver.AllowReusePort();
        }