org.lastbamboo.common.ice.candidate
Class IceUdpRelayCandidate
java.lang.Object
org.lastbamboo.common.ice.candidate.AbstractIceCandidate
org.lastbamboo.common.ice.candidate.IceUdpRelayCandidate
- All Implemented Interfaces:
- Comparable<AbstractIceCandidate>, IceCandidate
public class IceUdpRelayCandidate
- extends AbstractIceCandidate
Relay ICE UDP candidate.
|
Constructor Summary |
IceUdpRelayCandidate(InetSocketAddress relayAddress,
InetAddress stunServerAddress,
InetAddress relatedAddress,
int relatedPort,
boolean controlling)
Creates a new UDP ICE candidate for a relay candidate. |
IceUdpRelayCandidate(InetSocketAddress relayAddress,
String foundation,
long priority,
boolean controlling,
int componentId,
InetAddress relatedAddress,
int relatedPort)
|
| Methods inherited from class org.lastbamboo.common.ice.candidate.AbstractIceCandidate |
compareTo, equals, getBaseCandidate, getComponentId, getFoundation, getPriority, getRelatedAddress, getRelatedPort, getSocketAddress, getTransport, getType, hashCode, isControlling, isUdp, setControlling, toString |
IceUdpRelayCandidate
public IceUdpRelayCandidate(InetSocketAddress relayAddress,
InetAddress stunServerAddress,
InetAddress relatedAddress,
int relatedPort,
boolean controlling)
- Creates a new UDP ICE candidate for a relay candidate. Note the base
candidate for relays is the candidate itself.
- Parameters:
relayAddress - The address of the relay candidate.stunServerAddress - The address of the STUN server.relatedAddress - The address related to this candidate. In this
case, the mapped address received in the Allocate Response.relatedPort - The port related to this candidate. In this
case, the port in the mapped address received in the Allocate Response.controlling - Whether or not this candidate is the controlling
candidate.
IceUdpRelayCandidate
public IceUdpRelayCandidate(InetSocketAddress relayAddress,
String foundation,
long priority,
boolean controlling,
int componentId,
InetAddress relatedAddress,
int relatedPort)
accept
public <T> T accept(IceCandidateVisitor<T> visitor)
- Description copied from interface:
IceCandidate
- Accepts the specified visitor to an ICE candidate.
- Type Parameters:
T - The class to return.- Parameters:
visitor - The visitor to accept.
- Returns:
- The class the visitor created.
Copyright © 2013 LittleShoot. All Rights Reserved.