-
- All Implemented Interfaces:
-
java.lang.Comparable
public class RelayedCandidate extends LocalCandidate
Represents a Candidate obtained by sending a TURN Allocate request from a HostCandidate to a TURN server. The relayed candidate is resident on the TURN server, and the TURN server relays packets back towards the agent.
-
-
Constructor Summary
Constructors Constructor Description RelayedCandidate(TransportAddress transportAddress, TurnCandidateHarvest turnCandidateHarvest, TransportAddress mappedAddress)Initializes a new RelayedCandidate which is to represent a specific TransportAddress harvested through a specific HostCandidate and a TURN server with a specific TransportAddress.
-
Method Summary
Modifier and Type Method Description synchronized IceSocketWrappergetCandidateIceSocketWrapper()Gets the application-purposed DatagramSocket associated with this Candidate. -
Methods inherited from class org.ice4j.ice.LocalCandidate
getDatagramSocket, getExtendedType, getSocket, getStunSocket, getStunStack, getUfrag, isDefault, isSSL, setExtendedType, setSSL, setUfrag -
Methods inherited from class org.ice4j.ice.Candidate
canReach, compareTo, computeGTalkPriority, computeGTalkPriorityForType, computePriority, computePriorityForType, equals, getBase, getFoundation, getHostAddress, getMappedAddress, getParentComponent, getPriority, getReflexiveAddress, getRelatedAddress, getRelatedCandidate, getRelayServerAddress, getRelayedAddress, getStunServerAddress, getTcpType, getTransport, getTransportAddress, getType, hashCode, isVirtual, setBase, setCandidateType, setFoundation, setTcpType, setVirtual, toShortString, toString -
Methods inherited from class java.lang.Comparable
compareTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RelayedCandidate
RelayedCandidate(TransportAddress transportAddress, TurnCandidateHarvest turnCandidateHarvest, TransportAddress mappedAddress)
Initializes a new RelayedCandidate which is to represent a specific TransportAddress harvested through a specific HostCandidate and a TURN server with a specific TransportAddress.- Parameters:
transportAddress- the TransportAddress to be represented by the new instanceturnCandidateHarvest- the TurnCandidateHarvest which has harvested the new instancemappedAddress- the mapped TransportAddress reported by the TURN server with the delivery of the replayed transportAddressto be represented by the new instance
-
-
Method Detail
-
getCandidateIceSocketWrapper
synchronized IceSocketWrapper getCandidateIceSocketWrapper()
Gets the application-purposed DatagramSocket associated with this Candidate.
-
-
-
-