예제 #1
0
 public void onSocketListeningReady(UDPSocket udpSocket)
 {
     Program.writeLine("Listening started on localhost: " + udpSocket.getInLocalPort() +
                       " and on " + AppInfo.LocalIP + ": " + udpSocket.getInLocalPort());
 }
예제 #2
0
 public void onSocketListeningException(UDPSocket udpSocket)
 {
     Program.writeLine("UDP socket error: UDP listening is closed UNEXPECTEDLY");
 }
예제 #3
0
 public void onSocketListeningClosed(UDPSocket udpSocket)
 {
     Program.writeLine("UDP socket log: UDP listening is closed");
 }
예제 #4
0
 public void onSocketCreationException(UDPSocket udpSocket, string excMsg)
 {
     Program.writeLine("UDP socket error: cant create local socket =>\n=>" + excMsg);
 }
예제 #5
0
 /// <summary>
 /// Запуск прослушки порта.
 /// </summary>
 /// <param name="outPort">порт для отправки</param>
 /// <param name="inPort">порт для прослушки</param>
 private void startNode(int outPort, int inPort)
 {
     udpSocket = new UDPSocket(outPort, inPort, this);
 }
예제 #6
0
 public void onSocketReceivingException(UDPSocket udpSocket, string excMsg)
 {
     Program.writeLine("UDP socket error: cant receive msg =>\n=>" + excMsg);
 }