Search in sources :

Example 1 with TransportNegotiator

use of org.jivesoftware.smackx.jingleold.nat.TransportNegotiator in project Smack by igniterealtime.

the class ContentNegotiator method isFullyEstablished.

/**
     * Return true if the transport and content negotiators have finished.
     */
public boolean isFullyEstablished() {
    boolean result = true;
    MediaNegotiator mediaNeg = getMediaNegotiator();
    if ((mediaNeg == null) || (!mediaNeg.isFullyEstablished())) {
        result = false;
    }
    TransportNegotiator transNeg = getTransportNegotiator();
    if ((transNeg == null) || (!transNeg.isFullyEstablished())) {
        result = false;
    }
    return result;
}
Also used : TransportNegotiator(org.jivesoftware.smackx.jingleold.nat.TransportNegotiator) MediaNegotiator(org.jivesoftware.smackx.jingleold.media.MediaNegotiator)

Example 2 with TransportNegotiator

use of org.jivesoftware.smackx.jingleold.nat.TransportNegotiator in project Smack by igniterealtime.

the class JingleSession method startNegotiators.

/**
     * When we initiate a session we need to start a bunch of negotiators right after we receive the result
     * stanza(/packet) for our session-initiate.  This is where we start them.
     * 
     */
private void startNegotiators() {
    for (ContentNegotiator contentNegotiator : contentNegotiators) {
        TransportNegotiator transNeg = contentNegotiator.getTransportNegotiator();
        transNeg.start();
    }
}
Also used : TransportNegotiator(org.jivesoftware.smackx.jingleold.nat.TransportNegotiator)

Aggregations

TransportNegotiator (org.jivesoftware.smackx.jingleold.nat.TransportNegotiator)2 MediaNegotiator (org.jivesoftware.smackx.jingleold.media.MediaNegotiator)1