Package | Description |
---|---|
org.ice4j | |
org.ice4j.attribute | |
org.ice4j.ice | |
org.ice4j.ice.harvest | |
org.ice4j.message | |
org.ice4j.socket | |
org.ice4j.stack | |
org.ice4j.stunclient |
Modifier and Type | Field and Description |
---|---|
private TransportAddress |
ChannelDataMessageEvent.localAddress
Local address receiving this event.
|
private TransportAddress |
ChannelDataMessageEvent.remoteAddress
Remote address causing this event.
|
Modifier and Type | Method and Description |
---|---|
TransportAddress |
PeerUdpMessageEvent.getLocalAddress()
Returns the address that this message was received on.
|
TransportAddress |
StunMessageEvent.getLocalAddress()
Returns a TransportAddress referencing the access point where
the message was received.
|
TransportAddress |
ChannelDataMessageEvent.getLocalAddress()
Gets the TransportAddress which is local address on which this
event was received.
|
TransportAddress |
StunFailureEvent.getLocalAddress()
Returns the TransportAddress that the message was supposed to
leave from.
|
TransportAddress |
StunTimeoutEvent.getLocalAddress()
Returns the TransportAddress that the message was supposed to
leave from.
|
TransportAddress |
PeerUdpMessageEvent.getRemoteAddress()
Returns the address and port of the host that sent the message
|
TransportAddress |
StunMessageEvent.getRemoteAddress()
Returns the address that sent the message.
|
TransportAddress |
ChannelDataMessageEvent.getRemoteAddress()
Gets the TransportAddress which is the remote address of this
event.
|
protected TransportAddress |
BaseStunMessageEvent.getSourceAddress()
Gets the TransportAddress which is the source of this event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TransportAddress.canReach(TransportAddress dst)
Determines whether this TransportAddress is theoretically
capable of communicating with dst.
|
boolean |
TransportAddress.equals(TransportAddress transportAddress)
Determines whether this TransportAddress is value equal to a
specific TransportAddress.
|
Constructor and Description |
---|
BaseStunMessageEvent(StunStack stunStack,
TransportAddress sourceAddress,
Message message)
Initializes a new BaseStunMessageEvent associated with a
specific STUN Message.
|
ChannelDataMessageEvent(StunStack stunStack,
TransportAddress remoteAddress,
TransportAddress localAddress,
ChannelData channelDataMessage)
Initializes a new ChannelDataMessageEvent associated with a
specific ChannelData Message.
|
StunFailureEvent(StunStack stunStack,
Message message,
TransportAddress localAddress,
Throwable cause)
Constructs a StunFailureEvent according to the specified
message.
|
StunTimeoutEvent(StunStack stunStack,
Message message,
TransportAddress localAddress,
TransactionID transactionID)
Constructs a StunTimeoutEvent according to the specified
message.
|
Modifier and Type | Field and Description |
---|---|
protected TransportAddress |
AddressAttribute.address
The address represented by this message;
|
Modifier and Type | Method and Description |
---|---|
TransportAddress |
XorMappedAddressAttribute.applyXor(byte[] xorMask)
Returns the result of applying XOR on this attribute's address, using the
specified XOR mask.
|
static TransportAddress |
XorMappedAddressAttribute.applyXor(TransportAddress address,
byte[] transactionID)
Returns the result of applying XOR on the specified attribute's address.
|
TransportAddress |
AddressAttribute.getAddress()
Returns the address encapsulated by this attribute.
|
TransportAddress |
XorMappedAddressAttribute.getAddress(byte[] transactionID)
Returns the result of applying XOR on this attribute's address, using the
specified transaction ID when converting IPv6 addresses.
|
Modifier and Type | Method and Description |
---|---|
static TransportAddress |
XorMappedAddressAttribute.applyXor(TransportAddress address,
byte[] transactionID)
Returns the result of applying XOR on the specified attribute's address.
|
static ChangedAddressAttribute |
AttributeFactory.createChangedAddressAttribute(TransportAddress address)
Creates a changedAddressAttribute of the specified type and with the
specified address and port
|
static DestinationAddressAttribute |
AttributeFactory.createDestinationAddressAttribute(TransportAddress address)
Creates a DestinationFromAddressAttribute of the specified type and with
the specified address and port
|
static MappedAddressAttribute |
AttributeFactory.createMappedAddressAttribute(TransportAddress address)
Creates a MappedAddressAttribute of the specified type and with the
specified address and port
|
static ReflectedFromAttribute |
AttributeFactory.createReflectedFromAttribute(TransportAddress address)
Creates a ReflectedFromAddressAttribute of the specified type and with
the specified address and port
|
static ResponseAddressAttribute |
AttributeFactory.createResponseAddressAttribute(TransportAddress address)
Creates a ResponseFromAddressAttribute of the specified type and with the
specified address and port
|
static SourceAddressAttribute |
AttributeFactory.createSourceAddressAttribute(TransportAddress address)
Creates a SourceFromAddressAttribute of the specified type and with the
specified address and port
|
static XorMappedAddressAttribute |
AttributeFactory.createXorMappedAddressAttribute(TransportAddress address,
byte[] tranID)
Creates a XorMappedAddressAttribute for the specified address.
|
static XorPeerAddressAttribute |
AttributeFactory.createXorPeerAddressAttribute(TransportAddress address,
byte[] tranID)
Creates a XorPeerAddressAttribute of the specified type and with the
specified address and port
|
static XorRelayedAddressAttribute |
AttributeFactory.createXorRelayedAddressAttribute(TransportAddress address,
byte[] tranID)
Creates a XorRelayedAddressAttribute of the specified type and with the
specified address and port.
|
void |
AddressAttribute.setAddress(TransportAddress address)
Sets address to be the address transported by this attribute.
|
void |
XorMappedAddressAttribute.setAddress(TransportAddress address,
byte[] transactionID)
Applies a XOR mask to the specified address and then sets it as the value
transported by this attribute.
|
Modifier and Type | Field and Description |
---|---|
private TransportAddress |
Candidate.mappedAddress
The address that our TURN/STUN server returned as mapped if this is a
relayed or a reflexive Candidate.
|
private TransportAddress |
Candidate.relayServerAddress
The address of the relay server (i.e.
|
private TransportAddress |
Candidate.stunServerAddress
The address of the STUN server that was used to obtain this
Candidate.
|
private TransportAddress |
Candidate.transportAddress
The transport address represented by this candidate.
|
Modifier and Type | Method and Description |
---|---|
TransportAddress |
Candidate.getHostAddress()
Returns this candidate host address.
|
TransportAddress |
Candidate.getMappedAddress()
Returns the address that was returned to us a "mapped address" from a
TURN or a STUN server in case this Candidate is relayed or
reflexive and null otherwise.
|
TransportAddress |
Candidate.getReflexiveAddress()
Returns this candidate reflexive address.
|
TransportAddress |
Candidate.getRelatedAddress()
Returns a TransportAddress related to this Candidate.
|
TransportAddress |
Candidate.getRelayedAddress()
Returns this candidate relayed address.
|
TransportAddress |
Candidate.getRelayServerAddress()
Returns the address of the relay server (i.e.
|
TransportAddress |
Candidate.getStunServerAddress()
Returns the address of the STUN server that was used to obtain this
Candidate or null if this is not a server reflexive
candidate.
|
TransportAddress |
Candidate.getTransportAddress()
Returns the transport address that this candidate is representing.
|
Modifier and Type | Method and Description |
---|---|
protected StunDatagramPacketFilter |
LocalCandidate.createStunDatagramPacketFilter(TransportAddress serverAddress)
Creates a new StunDatagramPacketFilter which is to capture STUN
messages and make them available to the DatagramSocket returned
by
LocalCandidate.getStunSocket(TransportAddress) . |
protected StunDatagramPacketFilter |
HostCandidate.createStunDatagramPacketFilter(TransportAddress serverAddress)
Creates a new StunDatagramPacketFilter which is to capture STUN
messages and make them available to the DatagramSocket returned
by
LocalCandidate.getStunSocket(TransportAddress) . |
CandidatePair |
Agent.findCandidatePair(TransportAddress localAddress,
TransportAddress remoteAddress)
Returns the
CandidatePair with the specified remote and local
addresses or null if neither of the CheckList s in this
Agent 's streams contain such a pair. |
CandidatePair |
IceMediaStream.findCandidatePair(TransportAddress localAddress,
TransportAddress remoteAddress)
Returns the
CandidatePair with the specified remote and local
addresses or null if neither of the CheckList s in this
stream contain such a pair. |
LocalCandidate |
Agent.findLocalCandidate(TransportAddress localAddress)
Returns the local LocalCandidate with the specified
localAddress if it belongs to any of this
Agent 's
streams or null if it doesn't. |
LocalCandidate |
IceMediaStream.findLocalCandidate(TransportAddress localAddress)
Returns the local LocalCandidate with the specified
localAddress if it belongs to any of this stream's components
or null otherwise.
|
LocalCandidate |
Component.findLocalCandidate(TransportAddress localAddress)
Returns the local LocalCandidate with the specified
localAddress if it belongs to this component or null
if it doesn't.
|
LocalCandidate |
Agent.findLocalCandidate(TransportAddress localAddress,
String ufrag)
Returns the local LocalCandidate with the specified
localAddress if it belongs to any of this
Agent 's
streams or null if it doesn't. |
protected abstract T |
Candidate.findRelatedCandidate(TransportAddress relatedAddress)
Find the candidate corresponding to the address given in parameter.
|
protected LocalCandidate |
LocalCandidate.findRelatedCandidate(TransportAddress relatedAddress)
Find the candidate corresponding to the address given in parameter.
|
protected RemoteCandidate |
RemoteCandidate.findRelatedCandidate(TransportAddress relatedAddress)
Find the candidate corresponding to the address given in parameter.
|
RemoteCandidate |
Agent.findRemoteCandidate(TransportAddress remoteAddress)
Returns the remote Candidate with the specified
remoteAddress if it belongs to any of this
Agent 's
streams or null if it doesn't. |
RemoteCandidate |
IceMediaStream.findRemoteCandidate(TransportAddress remoteAddress)
Returns the local Candidate with the specified
remoteAddress if it belongs to any of this stream's
Component s or null if it doesn't. |
RemoteCandidate |
Component.findRemoteCandidate(TransportAddress remoteAddress)
Returns the remote Candidate with the specified
remoteAddress if it belongs to this
Component or
null if it doesn't. |
IceSocketWrapper |
LocalCandidate.getStunSocket(TransportAddress serverAddress)
Creates if necessary and returns a DatagramSocket that would
capture all STUN packets arriving on this candidate's socket.
|
protected void |
Agent.incomingCheckReceived(TransportAddress remoteAddress,
TransportAddress localAddress,
long priority,
String remoteUFrag,
String localUFrag,
boolean useCandidate)
Notifies the implementation that the
ConnectivityCheckServer has
just received a message on localAddress originating at
remoteAddress carrying the specified priority. |
protected void |
Candidate.setMappedAddress(TransportAddress address)
Sets the address that was returned to us a "mapped address" from a
TURN or a STUN server in case this Candidate is relayed.
|
protected void |
Candidate.setRelayServerAddress(TransportAddress address)
Sets the address of the relay server (i.e.
|
protected void |
Candidate.setStunServerAddress(TransportAddress address)
Sets the address of the STUN server that was used to obtain this
Candidate.
|
Constructor and Description |
---|
Candidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
T relatedCandidate)
Creates a candidate for the specified transport address and properties.
|
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.
|
HostCandidate(TransportAddress transportAddress,
Component parentComponent)
Creates a HostCandidate for the specified transport address.
|
LocalCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
CandidateExtendedType extendedType,
LocalCandidate relatedCandidate)
Creates a LocalCandidate instance for the specified transport
address and properties.
|
PeerReflexiveCandidate(TransportAddress transportAddress,
Component parentComponent,
LocalCandidate base,
long priority)
Creates a PeerReflexiveCandidate instance for the specified
transport address and properties.
|
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.
|
RemoteCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
String foundation,
long priority,
RemoteCandidate relatedCandidate)
Creates a RemoteCandidate instance for the specified transport
address and properties.
|
RemoteCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
String foundation,
long priority,
RemoteCandidate relatedCandidate,
String ufrag)
Creates a RemoteCandidate instance for the specified transport
address and properties.
|
ServerReflexiveCandidate(TransportAddress address,
HostCandidate base,
TransportAddress stunSrvrAddr,
CandidateExtendedType extendedType)
Creates a ServerReflexiveCandidate for the specified transport
address, and base.
|
ServerReflexiveCandidate(TransportAddress address,
HostCandidate base,
TransportAddress stunSrvrAddr,
StunCandidateHarvest stunHarvest,
CandidateExtendedType extendedType)
Creates a ServerReflexiveCandidate for the specified transport
address, and base.
|
TcpHostCandidate(TransportAddress transportAddress,
Component parentComponent)
Initializes a new TcpHostCandidate.
|
UPNPCandidate(TransportAddress transportAddress,
LocalCandidate base,
Component parentComponent,
org.bitlet.weupnp.GatewayDevice device)
Creates a UPNPCandidate for the specified transport, address,
and base.
|
Modifier and Type | Field and Description |
---|---|
protected TransportAddress |
MappingCandidateHarvester.face
The addresses that we will be masking
|
private static TransportAddress |
AwsCandidateHarvester.face
The addresses that we will be masking
|
protected TransportAddress |
AbstractUdpListener.localAddress
The local address that this harvester is bound to.
|
protected TransportAddress |
MappingCandidateHarvester.mask
The addresses that we will use as a mask
|
private static TransportAddress |
AwsCandidateHarvester.mask
The addresses that we will use as a mask
|
TransportAddress |
StunCandidateHarvester.stunServer
The address of the STUN server that we will be sending our requests to.
|
private TransportAddress |
StunMappingCandidateHarvester.stunServerAddress
The list of servers we will use to discover our public address.
|
Modifier and Type | Field and Description |
---|---|
protected List<TransportAddress> |
AbstractTcpListener.localAddresses
The list of transport addresses which we have found to be listening on,
and which may be, for example, advertises as ICE candidates.
|
Modifier and Type | Method and Description |
---|---|
TransportAddress |
MappingCandidateHarvester.getFace()
Returns the local (face) address, or null.
|
TransportAddress |
AwsCandidateHarvester.getFace()
Returns the local (face) address, or null.
|
protected TransportAddress |
StunCandidateHarvest.getMappedAddress(Response response)
Gets the TransportAddress specified in the XOR-MAPPED-ADDRESS
attribute of a specific Response.
|
TransportAddress |
MappingCandidateHarvester.getMask()
Returns the public (mask) address, or null.
|
TransportAddress |
AwsCandidateHarvester.getMask()
Returns the public (mask) address, or null.
|
Modifier and Type | Method and Description |
---|---|
static List<TransportAddress> |
AbstractUdpListener.getAllowedAddresses(int port)
Returns the list of
TransportAddress es, one for each allowed IP
address found on each allowed network interface, with the given port. |
private static List<TransportAddress> |
AbstractTcpListener.getLocalAddresses(int port,
List<NetworkInterface> interfaces)
Returns a list of all addresses on the interfaces in interfaces
which are found suitable for candidate allocations (are not loopback, are
up, and are allowed by the configuration).
|
Modifier and Type | Method and Description |
---|---|
protected GoogleRelayedCandidate |
GoogleTurnCandidateHarvest.createRelayedCandidate(TransportAddress transportAddress,
TransportAddress mappedAddress)
Creates a new RelayedCandidate instance which is to represent a
specific TransportAddress harvested through
StunCandidateHarvest.hostCandidate and the TURN server associated with
StunCandidateHarvest.harvester . |
protected RelayedCandidate |
TurnCandidateHarvest.createRelayedCandidate(TransportAddress transportAddress,
TransportAddress mappedAddress)
Creates a new RelayedCandidate instance which is to represent a
specific TransportAddress harvested through
StunCandidateHarvest.hostCandidate and the TURN server associated with
StunCandidateHarvest.harvester . |
protected ServerReflexiveCandidate |
StunCandidateHarvest.createServerReflexiveCandidate(TransportAddress transportAddress)
Creates a new ServerReflexiveCandidate instance which is to
represent a specific TransportAddress harvested through
StunCandidateHarvest.hostCandidate and the STUN server associated with
StunCandidateHarvest.harvester . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTcpListener.addLocalAddresses(List<TransportAddress> transportAddresses)
Adds to
AbstractTcpListener.localAddresses those addresses from
transportAddresses which are found suitable for candidate
allocation. |
Constructor and Description |
---|
AbstractUdpListener(TransportAddress localAddress)
Initializes a new SinglePortUdpHarvester instance which is to
bind on the specified local address.
|
GoogleTurnCandidateHarvester(TransportAddress turnServer)
Initializes a new GoogleTurnCandidateHarvester instance which
is to work with a specific Google TURN server.
|
GoogleTurnCandidateHarvester(TransportAddress turnServer,
String shortTermCredentialUsername,
String password)
Initializes a new GoogleTurnCandidateHarvester instance which is
to work with a specific TURN server using a specific username for the
purposes of the STUN short-term credential mechanism.
|
GoogleTurnSSLCandidateHarvester(TransportAddress turnServer)
Initializes a new GoogleTurnSSLCandidateHarvester instance which
is to work with a specific Google TURN server.
|
GoogleTurnSSLCandidateHarvester(TransportAddress turnServer,
String shortTermCredentialUsername,
String password)
Initializes a new GoogleTurnSSLCandidateHarvester instance which is
to work with a specific TURN server using a specific username for the
purposes of the STUN short-term credential mechanism.
|
MappingCandidateHarvester(TransportAddress mask,
TransportAddress face)
Creates a mapping harvester with the specified mask
|
SinglePortUdpHarvester(TransportAddress localAddress)
Initializes a new SinglePortUdpHarvester instance which is to
bind on the specified local address.
|
StunCandidateHarvester(TransportAddress stunServer)
Creates a new STUN harvester that will be running against the specified
stunServer using a specific username for the purposes of the
STUN short-term credential mechanism.
|
StunCandidateHarvester(TransportAddress stunServer,
String shortTermCredentialUsername)
Creates a new STUN harvester that will be running against the specified
stunServer using a specific username for the purposes of the
STUN short-term credential mechanism.
|
StunMappingCandidateHarvester(TransportAddress localAddress,
TransportAddress stunServerAddress)
Initializes a new
StunMappingCandidateHarvester instance with
a given local address and a STUN server address. |
TurnCandidateHarvester(TransportAddress turnServer)
Initializes a new TurnCandidateHarvester instance which is to
work with a specific TURN server.
|
TurnCandidateHarvester(TransportAddress turnServer,
LongTermCredential longTermCredential)
Initializes a new TurnCandidateHarvester instance which is to
work with a specific TURN server using a specific
LongTermCredential.
|
TurnCandidateHarvester(TransportAddress turnServer,
String shortTermCredentialUsername)
Initializes a new TurnCandidateHarvester instance which is to
work with a specific TURN server using a specific username for the
purposes of the STUN short-term credential mechanism.
|
Constructor and Description |
---|
AbstractTcpListener(List<TransportAddress> transportAddresses)
Initializes a new TcpHarvester, which is to listen on the
specified list of TransportAddresses.
|
TcpHarvester(List<TransportAddress> transportAddresses)
Initializes a new TcpHarvester, which is to
listen on the specified list of TransportAddresses.
|
TcpHarvester(List<TransportAddress> transportAddresses,
boolean ssltcp)
Initializes a new TcpHarvester, which is to
listen on the specified list of TransportAddresses.
|
Modifier and Type | Method and Description |
---|---|
static Response |
MessageFactory.create3489BindingResponse(TransportAddress mappedAddress,
TransportAddress sourceAddress,
TransportAddress changedAddress)
Creates a BindingResponse in a 3489 compliant manner, assigning the
specified values to mandatory headers.
|
static Response |
MessageFactory.createAllocationResponse(Request request,
TransportAddress mappedAddress,
TransportAddress relayedAddress,
byte[] token,
int lifetime)
Creates a AllocationResponse in a 5389 compliant manner containing at most 4 attributes
XOR-RELAYED-ADDRESS attribute LIFETIME attribute RESERVATION-TOKEN attribute XOR-MAPPED-ADDRESS attribute |
static Response |
MessageFactory.createAllocationResponse(Request request,
TransportAddress mappedAddress,
TransportAddress relayedAddress,
int lifetime)
Creates a AllocationResponse in a 5389 compliant manner containing at
most 4 attributes
XOR-RELAYED-ADDRESS attribute LIFETIME attribute XOR-MAPPED-ADDRESS attribute |
static Response |
MessageFactory.createBindingResponse(Request request,
TransportAddress mappedAddress)
Creates a BindingResponse in a 5389 compliant manner containing a single
XOR-MAPPED-ADDRESS attribute
|
static Request |
MessageFactory.createChannelBindRequest(char channelNumber,
TransportAddress peerAddress,
byte[] tranID)
Create a ChannelBind request.
|
static Indication |
MessageFactory.createConnectionAttemptIndication(int connectionIdValue,
TransportAddress peerAddress)
Creates a ConnectionAttempt Indication in a 6062 compliant manner
containing only CONECTION-ID-ATTRIBUTE attribute and
XOR-PPER-ADDRESS attribute.
|
static Indication |
MessageFactory.createConnectionAttemptIndication(int connectionIdValue,
TransportAddress peerAddress,
byte[] transactionId)
Creates a ConnectionAttempt Indication in a 6062 compliant manner
containing only CONECTION-ID-ATTRIBUTE attribute and
XOR-PPER-ADDRESS attribute.
|
static Request |
MessageFactory.createConnectRequest(TransportAddress peerAddress,
byte[] transactionId)
Creates a ConnectRequest in a 6062 compliant manner containing only
XOR-PEER-ADDRESS attribute.
|
static Request |
MessageFactory.createConnectRequest(TransportAddress peerAddress,
Request request)
Creates a ConnectRequest in a 6062 compliant manner containing only
XOR-PEER-ADDRESS attribute |
static Request |
MessageFactory.createCreatePermissionRequest(TransportAddress peerAddress,
byte[] transactionID)
Creates a new TURN CreatePermission Request with a specific
value for its XOR-PEER-ADDRESS attribute.
|
static Indication |
MessageFactory.createDataIndication(TransportAddress peerAddress,
byte[] data,
byte[] tranID)
Create a Data Indication.
|
static Indication |
MessageFactory.createSendIndication(TransportAddress peerAddress,
byte[] data,
byte[] tranID)
Create a Send Indication.
|
static Request |
MessageFactory.createSendRequest(String username,
TransportAddress peerAddress,
byte[] data)
Create a old Send Request.
|
Modifier and Type | Field and Description |
---|---|
TransportAddress |
RelayedCandidateDatagramSocket.Channel.peerAddress
The TransportAddress of the peer to which this
Channel provides a permission of this
RelayedCandidateDatagramSocket to send data to.
|
protected TransportAddress |
StunDatagramPacketFilter.stunServer
The TransportAddress of the STUN server DatagramPackets
representing STUN messages from and to which are accepted by this
instance.
|
private TransportAddress |
GoogleRelayedCandidateSocket.TCPOutputStream.target
Target transport address.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MergingDatagramSocket.initializeActive(IceSocketWrapper socketWrapper,
TransportAddress remoteAddress)
Initializes the active socket of this
MergingDatagramSocket . |
boolean |
RelayedCandidateDatagramSocket.Channel.peerAddressEquals(TransportAddress peerAddress)
Determines whether the peerAddress property of this instance
is considered by this Channel to be equal to a specific
TransportAddress.
|
void |
RelayedCandidateDatagramSocket.Channel.send(DatagramPacket p,
TransportAddress peerAddress)
Sends a specific DatagramPacket through this
Channel to a specific peer TransportAddress.
|
Constructor and Description |
---|
Channel(TransportAddress peerAddress)
Initializes a new Channel instance which is to provide this
RelayedCandidateDatagramSocket with a permission to send
to a specific peer TransportAddress.
|
StunDatagramPacketFilter(TransportAddress stunServer)
Initializes a new StunDatagramPacketFilter which will accept
DatagramPackets which represent STUN messages and which are part
of the communication with a specific STUN server (or any server if
stunServer is null).
|
TCPOutputStream(TransportAddress target)
Initializes a new TCPOutputStream.
|
TurnDatagramPacketFilter(TransportAddress turnServer)
Initializes a new TurnDatagramPacketFilter which will accept
DatagramPackets which represent TURN messages and which are part
of the communication with a specific TURN server.
|
Modifier and Type | Field and Description |
---|---|
private TransportAddress |
Connector.listenAddress
The address that we are listening to.
|
private TransportAddress |
StunClientTransaction.localAddress
The TransportAddress through which the original request was sent
and that we are supposed to be retransmitting through.
|
private TransportAddress |
RawMessage.localAddress
The address that this message was received on.
|
private TransportAddress |
StunServerTransaction.localListeningAddress
The TransportAddress that we received our request on.
|
private TransportAddress |
StunServerTransaction.localSendingAddress
The TransportAddress we use when sending responses
|
private TransportAddress |
Connector.remoteAddress
The remote address of the socket of this Connector if it is
a TCP socket, or null if it is UDP.
|
private TransportAddress |
RawMessage.remoteAddress
The address and port where the message was sent from.
|
private TransportAddress |
StunClientTransaction.requestDestination
The destination of the request.
|
private TransportAddress |
StunServerTransaction.requestSource
The address that we are receiving requests from.
|
private TransportAddress |
StunServerTransaction.responseDestination
The address that we are sending responses to.
|
Modifier and Type | Field and Description |
---|---|
private Map<TransportAddress,EventDispatcher> |
EventDispatcher.children
The Map of EventDispatchers which keep the
registrations of STUN request and indication listeners registered for
STUN requests and indications from specific local
TransportAddresses.
|
private Map<TransportAddress,Map<TransportAddress,Connector>> |
NetAccessManager.tcpConnectors
All Connectors currently in use with TCP.
|
private Map<TransportAddress,Map<TransportAddress,Connector>> |
NetAccessManager.tcpConnectors
All Connectors currently in use with TCP.
|
private Map<TransportAddress,Map<TransportAddress,Connector>> |
NetAccessManager.udpConnectors
All Connectors currently in use with UDP.
|
private Map<TransportAddress,Map<TransportAddress,Connector>> |
NetAccessManager.udpConnectors
All Connectors currently in use with UDP.
|
Modifier and Type | Method and Description |
---|---|
(package private) TransportAddress |
Connector.getListenAddress()
Returns the TransportAddress that this access point is bound
on.
|
TransportAddress |
StunClientTransaction.getLocalAddress()
Returns the local TransportAddress that this transaction is
sending requests from.
|
TransportAddress |
RawMessage.getLocalAddress()
Returns the address that this message was received on.
|
TransportAddress |
StunServerTransaction.getLocalListeningAddress()
Returns the local TransportAddress that this transaction is
receiving requests on.
|
(package private) TransportAddress |
Connector.getRemoteAddress()
Returns the remote TransportAddress or null if none
is specified.
|
TransportAddress |
StunClientTransaction.getRemoteAddress()
Returns the remote TransportAddress that this transaction is
sending requests to.
|
TransportAddress |
RawMessage.getRemoteAddress()
Returns the address and port of the host that sent the message
|
TransportAddress |
StunServerTransaction.getRequestSourceAddress()
Returns the remote TransportAddress that this transaction is
receiving requests from.
|
TransportAddress |
StunServerTransaction.getResponseDestinationAddress()
Returns the remote TransportAddress that this transaction is
receiving requests from.
|
TransportAddress |
StunServerTransaction.getSendingAddress()
Returns the local TransportAddress that this transaction is
sending responses from.
|
Modifier and Type | Method and Description |
---|---|
void |
EventDispatcher.addIndicationListener(TransportAddress localAddr,
MessageEventHandler indicationListener)
Registers a specific MessageEventHandler for notifications about
STUN indications received at a specific local TransportAddress.
|
void |
StunStack.addIndicationListener(TransportAddress localAddr,
MessageEventHandler indicationListener)
Adds a new MessageEventHandler which is to be notified about
STUN indications received at a specific local TransportAddress.
|
private void |
EventDispatcher.addMessageListener(TransportAddress localAddr,
EventDispatcher.MessageTypeEventHandler<?> messageListener)
Registers a specific MessageTypeEventHandler for notifications
about STUN messages received at a specific local
TransportAddress.
|
void |
EventDispatcher.addOldIndicationListener(TransportAddress localAddr,
MessageEventHandler indicationListener)
Registers a specific MessageEventHandler for notifications about
old indications received at a specific local TransportAddress.
|
void |
StunStack.addOldIndicationListener(TransportAddress localAddr,
MessageEventHandler indicationListener)
Adds a new MessageEventHandler which is to be notified about
old indications received at a specific local TransportAddress.
|
void |
EventDispatcher.addRequestListener(TransportAddress localAddr,
RequestListener listener)
Add a RequestListener for a specific NetAccessPoint.
|
void |
StunStack.addRequestListener(TransportAddress localAddress,
RequestListener listener)
Add a RequestListener for requests coming from a specific NetAccessPoint.
|
void |
StunStack.addSocket(IceSocketWrapper sock,
TransportAddress remoteAddress)
Creates and starts a Network Access Point (Connector) based on the
specified socket and the specified remote address.
|
protected void |
NetAccessManager.addSocket(IceSocketWrapper socket,
TransportAddress remoteAddress)
Creates and starts a new access point based on the specified socket.
|
static RawMessage |
RawMessage.build(byte[] messageBytes,
int messageLength,
TransportAddress remoteAddress,
TransportAddress localAddress)
Use builder pattern to allow creation of immutable RawMessage instances,
from outside the current package.
|
private void |
StunStack.cancelTransactionsForAddress(TransportAddress localAddr,
TransportAddress remoteAddr)
Stops all transactions for the specified localAddr so that they
won't send messages through any longer and so that we could remove the
associated socket.
|
private Connector |
NetAccessManager.getConnector(TransportAddress localAddress,
TransportAddress remoteAddress)
Returns the Connector responsible for a particular source
address and a particular destination address.
|
boolean |
EventDispatcher.hasRequestListeners(TransportAddress localAddr)
Check if there are any listeners for a specific address.
|
void |
StunStack.removeIndicationListener(TransportAddress localAddr,
MessageEventHandler indicationListener)
Removes an existing MessageEventHandler to no longer be notified
about STUN indications received at a specific local
TransportAddress.
|
private void |
EventDispatcher.removeMessageListener(TransportAddress localAddr,
EventDispatcher.MessageTypeEventHandler<?> messageListener)
Unregisters a specific MessageTypeEventHandler from
notifications about STUN messages received at a specific local
TransportAddress.
|
void |
EventDispatcher.removeRequestListener(TransportAddress localAddr,
RequestListener listener)
Remove a RequestListener for a specific NetAccessPointDescriptor.
|
void |
StunStack.removeSocket(TransportAddress localAddr)
Stops and deletes the connector listening on the specified local address.
|
void |
StunStack.removeSocket(TransportAddress localAddr,
TransportAddress remoteAddr)
Stops and deletes the connector listening on the specified local address
and remote address.
|
protected void |
NetAccessManager.removeSocket(TransportAddress localAddress,
TransportAddress remoteAddress)
Stops and deletes the specified access point.
|
void |
StunStack.sendChannelData(ChannelData channelData,
TransportAddress sendTo,
TransportAddress sendThrough)
Sends a specific STUN Indication to a specific destination
TransportAddress through a socket registered with this
StunStack using a specific TransportAddress.
|
void |
StunStack.sendIndication(Indication indication,
TransportAddress sendTo,
TransportAddress sendThrough)
Sends a specific STUN Indication to a specific destination
TransportAddress through a socket registered with this
StunStack using a specific TransportAddress.
|
(package private) void |
Connector.sendMessage(byte[] message,
TransportAddress address)
Sends message through this access point's socket.
|
(package private) void |
NetAccessManager.sendMessage(byte[] bytes,
TransportAddress srcAddr,
TransportAddress remoteAddr)
Sends the specified bytes through the specified access point.
|
(package private) void |
NetAccessManager.sendMessage(ChannelData channelData,
TransportAddress srcAddr,
TransportAddress remoteAddr)
Sends the specified stun message through the specified access point.
|
(package private) void |
NetAccessManager.sendMessage(Message stunMessage,
TransportAddress srcAddr,
TransportAddress remoteAddr)
Sends the specified stun message through the specified access point.
|
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.
|
void |
StunStack.sendResponse(byte[] transactionID,
Response response,
TransportAddress sendThrough,
TransportAddress sendTo)
Sends the specified response message through the specified access point.
|
void |
StunServerTransaction.sendResponse(Response response,
TransportAddress sendThrough,
TransportAddress sendTo)
Sends the specified response through the
sendThrough
NetAccessPoint descriptor to the specified destination and changes
the transaction's state to retransmitting. |
void |
StunStack.sendUdpMessage(RawMessage udpMessage,
TransportAddress sendTo,
TransportAddress sendThrough)
Sends a specific STUN Indication to a specific destination
TransportAddress through a socket registered with this
StunStack using a specific TransportAddress.
|
Constructor and Description |
---|
Connector(IceSocketWrapper socket,
TransportAddress remoteAddress,
Consumer<RawMessage> messageConsumer,
ErrorHandler errorHandler)
Creates a network access point.
|
RawMessage(byte[] messageBytes,
int messageLength,
TransportAddress remoteAddress,
TransportAddress localAddress)
Constructs a raw message with the specified field values.
|
StunClientTransaction(StunStack stackCallback,
Request request,
TransportAddress requestDestination,
TransportAddress localAddress,
ResponseCollector responseCollector)
Creates a client transaction.
|
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 | Field and Description |
---|---|
private TransportAddress |
BlockingRequestSender.localAddress
The transport address that we are bound on.
|
private TransportAddress |
NetworkConfigurationDiscoveryProcess.localAddress
The point where we'll be listening.
|
private TransportAddress |
StunDiscoveryReport.publicAddress |
private TransportAddress |
NetworkConfigurationDiscoveryProcess.serverAddress
The address of the stun server
|
private TransportAddress |
SimpleAddressDetector.serverAddress
The address of the stun server
|
Modifier and Type | Method and Description |
---|---|
TransportAddress |
BlockingRequestSender.getLocalAddress()
Returns the local Address on which this Blocking Request Sender is bound
to.
|
TransportAddress |
SimpleAddressDetector.getMappingFor(IceSocketWrapper socket)
Creates a listening point for the specified socket and attempts to
discover how its local address is NAT mapped.
|
TransportAddress |
StunDiscoveryReport.getPublicAddress()
Returns the public addressed discovered by a discovery process.
|
TransportAddress |
SimpleAddressDetector.getServerAddress()
Returns the server address that this detector is using to run stun
queries.
|
Modifier and Type | Method and Description |
---|---|
private StunMessageEvent |
NetworkConfigurationDiscoveryProcess.doTestI(TransportAddress serverAddress)
Sends a binding request to the specified server address.
|
private StunMessageEvent |
NetworkConfigurationDiscoveryProcess.doTestII(TransportAddress serverAddress)
Sends a binding request to the specified server address with both change
IP and change port flags are set to true.
|
private StunMessageEvent |
NetworkConfigurationDiscoveryProcess.doTestIII(TransportAddress serverAddress)
Sends a binding request to the specified server address with only change
port flag set to true and change IP flag - to false.
|
StunMessageEvent |
BlockingRequestSender.sendRequestAndWaitForResponse(Request request,
TransportAddress serverAddress)
Sends the specified request and blocks until a response has been
received or the request transaction has timed out.
|
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.
|
(package private) void |
StunDiscoveryReport.setPublicAddress(TransportAddress stunAddress)
Sets a public address.
|
Constructor and Description |
---|
BlockingRequestSender(StunStack stunStack,
TransportAddress localAddress)
Creates a new request sender.
|
NetworkConfigurationDiscoveryProcess(StunStack stunStack,
TransportAddress localAddress,
TransportAddress serverAddress)
Initializes a StunAddressDiscoverer with a specific
StunStack.
|
SimpleAddressDetector(TransportAddress serverAddress)
Creates a StunAddressDiscoverer.
|
Copyright © 2018. All rights reserved.