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