Пример #1
0
 public void startUDPListening(int udpPort)
 {
     udpListener.Bind(new IPEndPoint(IPAddress.Any, udpPort));
     udpListener.startListening(delegate(byte[] data) {
         handleUDPData(data);
     });
 }
Пример #2
0
 public void listenUdp()
 {
     udpListener.Bind(new IPEndPoint(IPAddress.Any, myUDPPort));
     udpListener.startListening(delegate(byte[] data)
     {
         handleUDPData(data);
     });
 }