public void test() throws UtilityException, SocketException, UnknownHostException, IOException, MessageAttributeParsingException, MessageAttributeException, MessageHeaderParsingException { initialSocket = new DatagramSocket(); initialSocket.connect(InetAddress.getByName(stunServer), port); initialSocket.setSoTimeout(timeout); if (bindingCommunicationInitialSocket()) { return; } BindingLifetimeTask task = new BindingLifetimeTask(); timer.schedule(task, binarySearchLifetime); LOGGER.debug("Timer scheduled initially: " + binarySearchLifetime + "."); }
public void run() { try { lifetimeQuery(); } catch (Exception e) { LOGGER.debug("Unhandled Exception. BindLifetimeTasks stopped."); e.printStackTrace(); } }
binarySearchLifetime = (upperBinarySearchLifetime + lowerBinarySearchLifetime) / 2; if (binarySearchLifetime > 0) { BindingLifetimeTask task = new BindingLifetimeTask(); timer.schedule(task, binarySearchLifetime); LOGGER.debug("Timer scheduled: " + binarySearchLifetime + "."); return; BindingLifetimeTask task = new BindingLifetimeTask(); timer.schedule(task, binarySearchLifetime); LOGGER.debug("Timer scheduled: " + binarySearchLifetime + ".");
binarySearchLifetime = (upperBinarySearchLifetime + lowerBinarySearchLifetime) / 2; if (binarySearchLifetime > 0) { BindingLifetimeTask task = new BindingLifetimeTask(); timer.schedule(task, binarySearchLifetime); LOGGER.debug("Timer scheduled: " + binarySearchLifetime + "."); return; BindingLifetimeTask task = new BindingLifetimeTask(); timer.schedule(task, binarySearchLifetime); LOGGER.debug("Timer scheduled: " + binarySearchLifetime + ".");
public void run() { try { lifetimeQuery(); } catch (Exception e) { LOGGER.debug("Unhandled Exception. BindLifetimeTasks stopped."); e.printStackTrace(); } }
public void test() throws UtilityException, SocketException, UnknownHostException, IOException, MessageAttributeParsingException, MessageAttributeException, MessageHeaderParsingException { initialSocket = new DatagramSocket(); initialSocket.connect(InetAddress.getByName(stunServer), port); initialSocket.setSoTimeout(timeout); if (bindingCommunicationInitialSocket()) { return; } BindingLifetimeTask task = new BindingLifetimeTask(); timer.schedule(task, binarySearchLifetime); LOGGER.debug("Timer scheduled initially: " + binarySearchLifetime + "."); }