All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lastbamboo.common.ice.candidate.IceTcpActiveCandidate Maven / Gradle / Ivy

The newest version!
package org.lastbamboo.common.ice.candidate;

import java.net.InetSocketAddress;

import org.lastbamboo.common.ice.IceTransportProtocol;

/**
 * ICE active TCP candidate.
 */
public class IceTcpActiveCandidate extends AbstractIceCandidate
    {

    /**
     * Creates a new TCP active ICE candidate.
     * 
     * @param socketAddress The address of the local host.
     * @param controlling Whether or not this candidate is the controlling
     * candidate.
     */
    public IceTcpActiveCandidate(final InetSocketAddress socketAddress,
        final boolean controlling)
        {
        super(socketAddress, socketAddress.getAddress(), IceCandidateType.HOST, 
            IceTransportProtocol.TCP_ACT, controlling);
        }

    public  T accept(final IceCandidateVisitor visitor)
        {
        return visitor.visitTcpActiveCandidate(this);
        }

    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy