예제 #1
0
 public Client()
 {
     ipHostInfo      = Dns.GetHostEntry(Dns.GetHostName());
     ipAddress       = ipHostInfo.AddressList[0];
     ipLocalEndPoint = new IPEndPoint(ipAddress, 0);
     udpClient       = new UdpClientEx(ipLocalEndPoint);
 }
예제 #2
0
 public Client()
 {
     ipHostInfo = Dns.GetHostEntry(Dns.GetHostName());
     ipAddress = ipHostInfo.AddressList[0];
     ipLocalEndPoint = new IPEndPoint(ipAddress, 0);
     udpClient = new UdpClientEx(ipLocalEndPoint);
 }