org.lastbamboo.common.ice.candidate.IceTcpHostPassiveCandidate Maven / Gradle / Ivy
package org.lastbamboo.common.ice.candidate;
import java.net.InetSocketAddress;
import org.lastbamboo.common.ice.IceTransportProtocol;
/**
* ICE passive TCP candidate for the local host.
*/
public class IceTcpHostPassiveCandidate extends AbstractIceCandidate
{
/**
* Creates a new TCP passive ICE candidate for the local host.
*
* @param socketAddress The address of the local host.
* @param controlling Whether or not this candidate is the controlling
* candidate.
*/
public IceTcpHostPassiveCandidate(final InetSocketAddress socketAddress,
final boolean controlling)
{
super(socketAddress, socketAddress.getAddress(), IceCandidateType.HOST,
IceTransportProtocol.TCP_PASS, controlling);
}
/**
* Creates a new TCP passive ICE candidate for the local host.
*
* @param socketAddress The address of the local host.
* @param foundation The foundation for the candidate.
* @param controlling Whether or not this candidate is the controlling
* candidate.
* @param priority The priority.
* @param componentId The component ID.
*/
public IceTcpHostPassiveCandidate(final InetSocketAddress socketAddress,
final String foundation, final boolean controlling, final long priority,
final int componentId)
{
super(socketAddress, foundation,
IceCandidateType.HOST, IceTransportProtocol.TCP_PASS,
priority, controlling, componentId, null, null, -1);
}
public T accept(final IceCandidateVisitor visitor)
{
return visitor.visitTcpHostPassiveCandidate(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy