Tabnine Logo
ICENegociator.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
de.javawi.jstun.test.demo.ice.ICENegociator
constructor

Best Java code snippets using de.javawi.jstun.test.demo.ice.ICENegociator.<init> (Showing top 3 results out of 315)

origin: igniterealtime/Smack

@Override
public void initialize() throws XMPPException {
  if (!isResolving() && !isResolved()) {
    LOGGER.fine("Initialized");
    // Negotiation with a STUN server for a set of interfaces is quite slow, but the results
    // never change over then instance of a JVM.  To increase connection performance considerably
    // we now cache established/initialized negotiators for each STUN server, so that subsequent uses
    // of the STUN server are much, much faster.
    if (negociatorsMap.get(server) == null) {
    // CHECKSTYLE:OFF
      ICENegociator iceNegociator = new ICENegociator(server, port, (short) 1);
      negociatorsMap.put(server, iceNegociator);
      // gather candidates
      iceNegociator.gatherCandidateAddresses();
      // prioritize candidates
      iceNegociator.prioritizeCandidates();
    // CHECKSTYLE:ON
    }
  }
  this.setInitialized();
}
origin: org.igniterealtime.smack/smack-jingle

public void initialize() throws XMPPException {
  if (!isResolving() && !isResolved()) {
    LOGGER.fine("Initialized");
    // Negotiation with a STUN server for a set of interfaces is quite slow, but the results
    // never change over then instance of a JVM.  To increase connection performance considerably
    // we now cache established/initialized negotiators for each STUN server, so that subsequent uses
    // of the STUN server are much, much faster.
    if (negociatorsMap.get(server) == null) {
      ICENegociator iceNegociator = new ICENegociator(server, port, (short) 1);
      negociatorsMap.put(server, iceNegociator);
      
      // gather candidates
      iceNegociator.gatherCandidateAddresses();
      // priorize candidates
      iceNegociator.prioritizeCandidates();
    }
  }
  this.setInitialized();
}
origin: org.igniterealtime.smack/smackx-jingle

public void initialize() throws XMPPException {
  if (!isResolving() && !isResolved()) {
    LOGGER.debug("Initialized");
    // Negotiation with a STUN server for a set of interfaces is quite slow, but the results
    // never change over then instance of a JVM.  To increase connection performance considerably
    // we now cache established/initialized negotiators for each STUN server, so that subsequent uses
    // of the STUN server are much, much faster.
    if (negociatorsMap.get(server) == null) {
      ICENegociator iceNegociator = new ICENegociator(server, port, (short) 1);
      negociatorsMap.put(server, iceNegociator);
      
      // gather candidates
      iceNegociator.gatherCandidateAddresses();
      // priorize candidates
      iceNegociator.prioritizeCandidates();
    }
  }
  this.setInitialized();
}
de.javawi.jstun.test.demo.iceICENegociator<init>

Popular methods of ICENegociator

  • gatherCandidateAddresses
  • getSortedCandidates
  • prioritizeCandidates

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now