@Override public void handle(CloseConnectionResponse event) { logger.info("Received CloseConnectionResponse"); Set set = new HashSet<Integer>(); set.add(serverAddr.getPort()); PortDeleteRequest request = new PortDeleteRequest(0, set, Transport.UDT); request.setResponse(new PortDeleteResponse(request, 0) {}); trigger(request, server.getPositive(NatNetworkControl.class)); }
@Override public void handle(PortBindResponse event) { logger.info("Port bind response"); if (event.getStatus() == Status.FAIL) { testObj.failAndRelease(); return; } if (event.getPort() == serverAddr.getPort()) { trigger( new TConnectionMsg.Ping(clientAddr, serverAddr, Transport.TCP, UUID.nextUUID()), client.getPositive(VodNetwork.class)); } }