|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.ice.candidate.IceUdpCandidatePair
public class IceUdpCandidatePair
A UDP ICE candidate pair.
| Field Summary | |
|---|---|
protected org.littleshoot.mina.common.IoSession |
m_ioSession
|
| Constructor Summary | |
|---|---|
IceUdpCandidatePair(IceCandidate localCandidate,
IceCandidate remoteCandidate,
IceStunCheckerFactory stunCheckerFactory,
IceConnector iceConnector)
Creates a new pair without an existing connection between the endpoints. |
|
IceUdpCandidatePair(IceCandidate localCandidate,
IceCandidate remoteCandidate,
org.littleshoot.mina.common.IoSession ioSession,
IceStunCheckerFactory stunCheckerFactory)
Creates a new pair. |
|
| Method Summary | ||
|---|---|---|
|
accept(IceCandidatePairVisitor<T> visitor)
Accepts the specified visitor to an ICE candidate pair. |
|
void |
cancelStunTransaction()
Cancels the existing STUN transaction. |
|
org.littleshoot.stun.stack.message.StunMessage |
check(org.littleshoot.stun.stack.message.BindingRequest request,
long rto)
|
|
void |
close()
|
|
int |
compareTo(IceCandidatePair other)
|
|
boolean |
equals(Object obj)
|
|
int |
getComponentId()
Accessor for the component ID for the pair. |
|
String |
getFoundation()
Accessor for the foundation for the pair. |
|
org.littleshoot.mina.common.IoSession |
getIoSession()
|
|
IceCandidate |
getLocalCandidate()
Accessor for the local candidate for the pair. |
|
long |
getPriority()
Accessor for the priority for the pair. |
|
IceCandidate |
getRemoteCandidate()
Accessor for the remote candidate for the pair. |
|
IceCandidatePairState |
getState()
Accesses the state of the pair. |
|
int |
hashCode()
|
|
boolean |
isNominated()
Returns whether or not this pair has already been nominated. |
|
boolean |
isNominateOnSuccess()
|
|
boolean |
isTcp()
Returns whether or not a pair is a TCP pair. |
|
boolean |
isTurnPair()
Check for whether or not this pair is for a TURN connection. |
|
void |
nominate()
Nominates this pair as potentially the final pair for exchanging media. |
|
void |
nominateOnSuccess()
|
|
void |
recomputePriority()
Recomputes the priority for the pair. |
|
void |
setIoSession(org.littleshoot.mina.common.IoSession session)
Sets the IoSession for the pair. |
|
void |
setState(IceCandidatePairState state)
Sets the state of the pair. |
|
String |
toString()
|
|
void |
useCandidate()
Sets a flag indicating checks on this pair should include the USE-CANDIDATE attribute in their Binding Requests. |
|
boolean |
useCandidateSet()
Returns whether or not the USE-CANDIDATE attribute is set, i.e. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected volatile org.littleshoot.mina.common.IoSession m_ioSession
| Constructor Detail |
|---|
public IceUdpCandidatePair(IceCandidate localCandidate,
IceCandidate remoteCandidate,
IceStunCheckerFactory stunCheckerFactory,
IceConnector iceConnector)
localCandidate - The local candidate.remoteCandidate - The candidate from the remote agent.stunCheckerFactory - The class for creating new STUN checkers.iceConnector - The class for creating a connection between the
candidates.
public IceUdpCandidatePair(IceCandidate localCandidate,
IceCandidate remoteCandidate,
org.littleshoot.mina.common.IoSession ioSession,
IceStunCheckerFactory stunCheckerFactory)
localCandidate - The local candidate.remoteCandidate - The candidate from the remote agent.ioSession - The IoSession connecting to the two endpoints.stunCheckerFactory - The class for creating new STUN checkers.| Method Detail |
|---|
public org.littleshoot.stun.stack.message.StunMessage check(org.littleshoot.stun.stack.message.BindingRequest request,
long rto)
check in interface IceCandidatePairpublic void useCandidate()
IceCandidatePair
useCandidate in interface IceCandidatePairpublic boolean useCandidateSet()
IceCandidatePair
useCandidateSet in interface IceCandidatePairtrue if the USE-CANDIDATE attribute is in use.public void cancelStunTransaction()
IceCandidatePair"means that the agent will not retransmit the request, will not treat the lack of response to be a failure, but will wait the duration of the transaction timeout for a response."
cancelStunTransaction in interface IceCandidatePairpublic void recomputePriority()
IceCandidatePair
recomputePriority in interface IceCandidatePairpublic IceCandidate getLocalCandidate()
IceCandidatePair
getLocalCandidate in interface IceCandidatePairpublic IceCandidate getRemoteCandidate()
IceCandidatePair
getRemoteCandidate in interface IceCandidatePairpublic long getPriority()
IceCandidatePair
getPriority in interface IceCandidatePairpublic IceCandidatePairState getState()
IceCandidatePair
getState in interface IceCandidatePairpublic String getFoundation()
IceCandidatePair
getFoundation in interface IceCandidatePairpublic void setState(IceCandidatePairState state)
IceCandidatePair
setState in interface IceCandidatePairstate - The state of the pair.public void setIoSession(org.littleshoot.mina.common.IoSession session)
IceCandidatePairIoSession for the pair.
setIoSession in interface IceCandidatePairsession - The IoSession.public int getComponentId()
IceCandidatePair
getComponentId in interface IceCandidatePairpublic void nominate()
IceCandidatePair
nominate in interface IceCandidatePairpublic boolean isNominated()
IceCandidatePair
isNominated in interface IceCandidatePairtrue if the pair has been nominated, otherwise
false.public boolean isTcp()
IceCandidatePair
isTcp in interface IceCandidatePairtrue if the pair is TCP, otherwise
false.public void nominateOnSuccess()
nominateOnSuccess in interface IceCandidatePairpublic boolean isNominateOnSuccess()
isNominateOnSuccess in interface IceCandidatePairpublic void close()
close in interface IceCandidatePairpublic org.littleshoot.mina.common.IoSession getIoSession()
getIoSession in interface IceCandidatePairpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(IceCandidatePair other)
compareTo in interface Comparable<IceCandidatePair>public boolean isTurnPair()
IceCandidatePair
isTurnPair in interface IceCandidatePairtrue if the local candidate for this pair is for
our connection to our TURN server (the connection over which we sent
an Allocate Request).public <T> T accept(IceCandidatePairVisitor<T> visitor)
IceCandidatePair
accept in interface IceCandidatePairT - The class to return.visitor - The visitor to accept.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||