candPort = -1; DiscoveryTest test = new DiscoveryTest(iaddress, currentServer.getHostname(), currentServer.getPort()); DiscoveryInfo di = test.test();
public DiscoveryInfo test() throws UtilityException, SocketException, UnknownHostException, IOException, MessageAttributeParsingException, MessageAttributeException, MessageHeaderParsingException{ ma = null; ca = null; nodeNatted = true; socketTest1 = null; di = new DiscoveryInfo(sourceIaddress); if (test1()) { if (test2()) { if (test1Redo()) { test3(); } } } socketTest1.close(); return di; }
public DiscoveryInfo test() throws UtilityException, SocketException, UnknownHostException, IOException, MessageAttributeParsingException, MessageAttributeException, MessageHeaderParsingException{ ma = null; ca = null; nodeNatted = true; socketTest1 = null; di = new DiscoveryInfo(sourceIaddress); if (test1()) { if (test2()) { if (test1Redo()) { test3(); } } } socketTest1.close(); return di; }
public void run() { try { DiscoveryTest test = new DiscoveryTest(iaddress, port, "jstun.javawi.de", 3478); //DiscoveryTest test = new DiscoveryTest(iaddress, "stun.sipgate.net", 10000); // iphone-stun.freenet.de:3478 // larry.gloo.net:3478 // stun.xten.net:3478 // stun.sipgate.net:10000 System.out.println(test.test()); } catch (BindException be) { System.out.println(iaddress.toString() + ": " + be.getMessage()); } catch (Exception e) { System.out.println(e.getMessage()); e.printStackTrace(); } }
public void run() { try { DiscoveryTest test = new DiscoveryTest(iaddress, port, "jstun.javawi.de", 3478); //DiscoveryTest test = new DiscoveryTest(iaddress, "stun.sipgate.net", 10000); // iphone-stun.freenet.de:3478 // larry.gloo.net:3478 // stun.xten.net:3478 // stun.sipgate.net:10000 System.out.println(test.test()); } catch (BindException be) { System.out.println(iaddress.toString() + ": " + be.getMessage()); } catch (Exception e) { System.out.println(e.getMessage()); e.printStackTrace(); } }
candidates.add(local); DiscoveryTest test = new DiscoveryTest(iaddress, 0, stunServer, stunPort); DiscoveryInfo di = test.test(); if (di.getPublicIP() != null) { Candidate cand = new Candidate(new Address(di.getPublicIP().getAddress()), CandidateType.ServerReflexive, componentId, local);
candidates.add(local); DiscoveryTest test = new DiscoveryTest(iaddress, 0, stunServer, stunPort); DiscoveryInfo di = test.test(); if (di.getPublicIP() != null) { Candidate cand = new Candidate(new Address(di.getPublicIP().getAddress()), CandidateType.ServerReflexive, componentId, local);
candPort = -1; DiscoveryTest test = new DiscoveryTest(iaddress, currentServer.getHostname(), currentServer.getPort()); DiscoveryInfo di = test.test();
candPort = -1; DiscoveryTest test = new DiscoveryTest(iaddress, currentServer.getHostname(), currentServer.getPort()); DiscoveryInfo di = test.test();