Package | Description |
---|---|
org.ice4j | |
org.ice4j.ice | |
org.ice4j.ice.harvest | |
org.ice4j.stack | |
org.ice4j.stunclient |
Modifier and Type | Field and Description |
---|---|
private TransactionID |
BaseStunMessageEvent.transactionID
The ID of the transaction related to
BaseStunMessageEvent.message . |
Modifier and Type | Method and Description |
---|---|
TransactionID |
BaseStunMessageEvent.getTransactionID()
Gets the ID of the transaction related to the STUN Message
associated with this event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BaseStunMessageEvent.setTransactionID(TransactionID tranID)
Allows descendants of this class to set the transaction ID so that we
don't need to look it up later.
|
Constructor and Description |
---|
StunResponseEvent(StunStack stunStack,
RawMessage rawMessage,
Response response,
Request request,
TransactionID transactionID)
Creates a new instance of this event.
|
StunTimeoutEvent(StunStack stunStack,
Message message,
TransportAddress localAddress,
TransactionID transactionID)
Constructs a StunTimeoutEvent according to the specified
message.
|
Modifier and Type | Field and Description |
---|---|
private TransactionID |
CandidatePair.connCheckTranID
The
TransactionID of the client transaction for a connectivity
check over this pair in case it is in the
CandidatePairState.IN_PROGRESS state. |
Modifier and Type | Method and Description |
---|---|
TransactionID |
CandidatePair.getConnectivityCheckTransaction()
Returns the
TransactionID used in the connectivity check
associated with this CandidatePair when it's in the
CandidatePairState.IN_PROGRESS or null if it's in
any other state. |
protected TransactionID |
ConnectivityCheckClient.startCheckForPair(CandidatePair candidatePair)
Creates a STUN
Request containing the necessary PRIORITY and
CONTROLLING/CONTROLLED attributes. |
protected TransactionID |
ConnectivityCheckClient.startCheckForPair(CandidatePair candidatePair,
int originalWaitInterval,
int maxWaitInterval,
int maxRetransmissions)
Creates a STUN
Request containing the necessary PRIORITY and
CONTROLLING/CONTROLLED attributes. |
Modifier and Type | Method and Description |
---|---|
private void |
CandidatePair.setState(CandidatePairState newState,
TransactionID tranID)
Sets the CandidatePairState of this pair to state.
|
void |
CandidatePair.setStateInProgress(TransactionID tranID)
Sets the CandidatePairState of this pair to
CandidatePairState.FROZEN . |
Modifier and Type | Field and Description |
---|---|
private Map<TransactionID,Request> |
StunCandidateHarvest.requests
The STUN Requests which have been sent by this instance, have
not received a STUN Response yet and have not timed out.
|
Modifier and Type | Method and Description |
---|---|
protected TransactionID |
StunCandidateHarvest.sendRequest(Request request,
boolean firstRequest,
TransactionID transactionID)
Sends a specific Request to the STUN server associated with this
StunCandidateHarvest.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
StunCandidateHarvest.processChallenge(byte[] realm,
byte[] nonce,
Request request,
TransactionID requestTransactionID)
Notifies this StunCandidateHarvest that a specific STUN
Request has been challenged for a long-term credential (as the
short-term credential mechanism does not utilize challenging) in a
specific realm and with a specific nonce.
|
private boolean |
StunCandidateHarvest.processChallenge(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific STUN
Response has been received and it challenges a specific STUN
Request for a long-term credential (as the short-term credential
mechanism does not utilize challenging).
|
protected boolean |
GoogleTurnCandidateHarvest.processErrorOrFailure(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific
Request has either received an error Response or has
failed to receive any Response.
|
protected boolean |
TurnCandidateHarvest.processErrorOrFailure(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific
Request has either received an error Response or has
failed to receive any Response.
|
protected boolean |
StunCandidateHarvest.processErrorOrFailure(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific
Request has either received an error Response or has
failed to receive any Response.
|
private boolean |
StunCandidateHarvest.processStaleNonce(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN error Response with error code
"438 Stale Nonce" to a specific STUN Request.
|
protected void |
GoogleTurnCandidateHarvest.processSuccess(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN success Response to a specific STUN
Request.
|
protected void |
TurnCandidateHarvest.processSuccess(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN success Response to a specific STUN
Request.
|
protected void |
StunCandidateHarvest.processSuccess(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN success Response to a specific STUN
Request.
|
private boolean |
StunCandidateHarvest.processUnauthorized(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN error Response with error code
"401 Unauthorized" to a specific STUN Request.
|
protected TransactionID |
StunCandidateHarvest.sendRequest(Request request,
boolean firstRequest,
TransactionID transactionID)
Sends a specific Request to the STUN server associated with this
StunCandidateHarvest.
|
Modifier and Type | Field and Description |
---|---|
private TransactionID |
StunServerTransaction.transactionID
The id of the transaction.
|
private TransactionID |
StunClientTransaction.transactionID
The id of the transaction.
|
Modifier and Type | Field and Description |
---|---|
private Hashtable<TransactionID,StunClientTransaction> |
StunStack.clientTransactions
Stores active client transactions mapped against TransactionID-s.
|
private Hashtable<TransactionID,StunServerTransaction> |
StunStack.serverTransactions
Currently open server transactions.
|
Modifier and Type | Method and Description |
---|---|
static TransactionID |
TransactionID.createNewRFC3489TransactionID()
Creates a RFC3489 transaction id object.The transaction id itself is
generated using the following algorithm:
The first 8 bytes of the id are given the value of
System.currentTimeMillis().
|
static TransactionID |
TransactionID.createNewTransactionID()
Creates a transaction id object.The transaction id itself is generated
using the following algorithm:
The first 6 bytes of the id are given the value of
System.currentTimeMillis().
|
static TransactionID |
TransactionID.createTransactionID(StunStack stunStack,
byte[] transactionID)
Returns a TransactionID instance for the specified id.
|
TransactionID |
StunServerTransaction.getTransactionID()
Returns the ID of the current transaction.
|
(package private) TransactionID |
StunClientTransaction.getTransactionID()
Returns the ID of the current transaction.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
DatagramSocket sendThrough,
ResponseCollector collector)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector,
TransactionID transactionID)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector,
TransactionID transactionID,
int originalWaitInterval,
int maxWaitInterval,
int maxRetransmissions)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
Modifier and Type | Method and Description |
---|---|
void |
StunStack.cancelTransaction(TransactionID transactionID)
Cancels the
StunClientTransaction with the specified
transactionID. |
private static void |
TransactionID.generateTransactionID(TransactionID tid,
int nb)
Generates a random transaction ID
|
protected StunServerTransaction |
StunStack.getServerTransaction(TransactionID transactionID)
Returns the transaction with the specified transactionID or
null if no such transaction exists.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector,
TransactionID transactionID)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector,
TransactionID transactionID,
int originalWaitInterval,
int maxWaitInterval,
int maxRetransmissions)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
Constructor and Description |
---|
StunClientTransaction(StunStack stackCallback,
Request request,
TransportAddress requestDestination,
TransportAddress localAddress,
ResponseCollector responseCollector,
TransactionID transactionID)
Creates a client transaction.
|
StunServerTransaction(StunStack stackCallback,
TransactionID tranID,
TransportAddress localListeningAddress,
TransportAddress requestSource)
Creates a server transaction
|
Modifier and Type | Method and Description |
---|---|
StunMessageEvent |
BlockingRequestSender.sendRequestAndWaitForResponse(Request request,
TransportAddress serverAddress,
TransactionID tranID)
Sends the specified request and blocks until a response has been
received or the request transaction has timed out with given
transactionID.
|
Copyright © 2018. All rights reserved.