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

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