public class GoogleRelayedCandidate extends LocalCandidate
Modifier and Type | Field and Description |
---|---|
private String |
password
Password.
|
private GoogleRelayedCandidateDatagramSocket |
relayedCandidateDatagramSocket
The RelayedCandidateDatagramSocket of this
GoogleRelayedCandidate.
|
private GoogleRelayedCandidateSocket |
relayedCandidateSocket
The RelayedCandidateSocket of this
GoogleRelayedCandidate.
|
private IceSocketWrapper |
socket
The application-purposed DatagramSocket associated with this
Candidate.
|
private GoogleTurnCandidateHarvest |
turnCandidateHarvest
The GoogleTurnCandidateHarvest which has harvested this
GoogleRelayedCandidate.
|
private String |
username
Username.
|
MAX_LOCAL_PREFERENCE, MAX_TYPE_PREFERENCE, MIN_LOCAL_PREFERENCE, MIN_TYPE_PREFERENCE, priority
Constructor and Description |
---|
GoogleRelayedCandidate(TransportAddress transportAddress,
GoogleTurnCandidateHarvest turnCandidateHarvest,
TransportAddress mappedAddress,
String username,
String password)
Initializes a new RelayedCandidate which is to represent a
specific TransportAddress harvested through a specific
HostCandidate and a TURN server with a specific
TransportAddress.
|
Modifier and Type | Method and Description |
---|---|
IceSocketWrapper |
getCandidateIceSocketWrapper()
Gets the application-purposed DatagramSocket associated with
this Candidate.
|
String |
getPassword()
Returns the password for this candidate.
|
private GoogleRelayedCandidateDatagramSocket |
getRelayedCandidateDatagramSocket()
Gets the RelayedCandidateDatagramSocket of this
RelayedCandidate.
|
private GoogleRelayedCandidateSocket |
getRelayedCandidateSocket()
Gets the RelayedCandidateDatagramSocket of this
RelayedCandidate.
|
createStunDatagramPacketFilter, findRelatedCandidate, free, getCandidateIceSocketWrapper, getDatagramSocket, getExtendedType, getIceSocketWrapper, getSocket, getStunSocket, getStunStack, getUfrag, isDefault, isSSL, setExtendedType, setSSL, setUfrag
canReach, compareTo, computeGTalkPriority, computeGTalkPriorityForType, computePriority, computePriorityForType, equals, getBase, getDefaultPreference, getFoundation, getHostAddress, getMappedAddress, getParentComponent, getPriority, getReflexiveAddress, getRelatedAddress, getRelatedCandidate, getRelayedAddress, getRelayServerAddress, getStunServerAddress, getTcpType, getTransport, getTransportAddress, getType, hashCode, isVirtual, setBase, setCandidateType, setFoundation, setMappedAddress, setRelayServerAddress, setStunServerAddress, setTcpType, setVirtual, toShortString, toString
private GoogleRelayedCandidateDatagramSocket relayedCandidateDatagramSocket
private GoogleRelayedCandidateSocket relayedCandidateSocket
private IceSocketWrapper socket
private final GoogleTurnCandidateHarvest turnCandidateHarvest
private final String username
private final String password
public GoogleRelayedCandidate(TransportAddress transportAddress, GoogleTurnCandidateHarvest turnCandidateHarvest, TransportAddress mappedAddress, String username, String password)
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 transportAddress
to be represented by the new instanceusername
- username (Send request to the Google relay server need
it)password
- password (used with XMPP gingle candidates).
it)private GoogleRelayedCandidateDatagramSocket getRelayedCandidateDatagramSocket()
Note: The method is part of the internal API of RelayedCandidate and TurnCandidateHarvest and is not intended for public use.
private GoogleRelayedCandidateSocket getRelayedCandidateSocket()
Note: The method is part of the internal API of RelayedCandidate and TurnCandidateHarvest and is not intended for public use.
public IceSocketWrapper getCandidateIceSocketWrapper()
getCandidateIceSocketWrapper
in class LocalCandidate
LocalCandidate.getCandidateIceSocketWrapper()
public String getPassword()
Copyright © 2018. All rights reserved.