Class TransportNegotiator.RawUdp
java.lang.Object
org.jivesoftware.smackx.jingleold.JingleNegotiator
org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
org.jivesoftware.smackx.jingleold.nat.TransportNegotiator.RawUdp
- Enclosing class:
- TransportNegotiator
Raw-UDP transport negotiator.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
TransportNegotiator.Ice, TransportNegotiator.RawUdp
-
Field Summary
Fields inherited from class org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
CANDIDATES_ACCEPT_PERIOD
Fields inherited from class org.jivesoftware.smackx.jingleold.JingleNegotiator
session
-
Constructor Summary
ConstructorDescriptionRawUdp
(JingleSession js, TransportResolver res, ContentNegotiator parentNegotiator) Default constructor, with a JingleSession and transport manager. -
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptableTransportCandidate
(TransportCandidate tc, List<TransportCandidate> localCandidates) Return true for fixed candidates.Obtain the best common transport candidate obtained in the negotiation.getJingleTransport
(TransportCandidate bestRemote) Get a TransportNegotiator instance.Methods inherited from class org.jivesoftware.smackx.jingleold.nat.TransportNegotiator
close, dispatchIncomingPacket, doStart, getAcceptedLocalCandidate, getBestLocalCandidate, getJingleTransport, getOfferedCandidates, getValidRemoteCandidates, isFullyEstablished
Methods inherited from class org.jivesoftware.smackx.jingleold.JingleNegotiator
addExpectedId, addListener, getConnection, getListenersList, getNegotiatorState, getSession, isExpectedId, isStarted, removeExpectedId, removeListener, setNegotiatorState, setSession, start
-
Constructor Details
-
RawUdp
Default constructor, with a JingleSession and transport manager.- Parameters:
js
- The Jingle session this negotiation belongs to.res
- The transport resolver to use.parentNegotiator
- the parent content negotiator.
-
-
Method Details
-
getJingleTransport
Get a TransportNegotiator instance.- Specified by:
getJingleTransport
in classTransportNegotiator
- Parameters:
bestRemote
- the transport candidate.- Returns:
- A TransportNegotiator instance
-
getBestRemoteCandidate
Obtain the best common transport candidate obtained in the negotiation.- Specified by:
getBestRemoteCandidate
in classTransportNegotiator
- Returns:
- the bestRemoteCandidate
-
acceptableTransportCandidate
public boolean acceptableTransportCandidate(TransportCandidate tc, List<TransportCandidate> localCandidates) Return true for fixed candidates.- Specified by:
acceptableTransportCandidate
in classTransportNegotiator
- Parameters:
tc
- the transport candidate.localCandidates
- a list of local transport candidates.- Returns:
- true if the transport candidate is acceptable
-