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;
}
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();
}
}
Aggregations