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

org.restcomm.media.ice.HostCandidate Maven / Gradle / Ivy

/*
 * TeleStax, Open Source Cloud Communications
 * Copyright 2011-2014, Telestax Inc and individual contributors
 * by the @authors tag.
 *
 * This program is free software: you can redistribute it and/or modify
 * under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see 
 *
 */

package org.restcomm.media.ice;

import java.net.InetAddress;

/**
 * A candidate obtained by binding to a specific port from an IP address on the
 * host.
 * 

* This includes IP addresses on physical interfaces and logical ones, such as * ones obtained through Virtual Private Networks (VPNs) and Realm Specific IP * (RSIP) [RFC3102] (which * lives at the operating system level). *

* * @author Henrique Rosa * */ public class HostCandidate extends IceCandidate { private static final long serialVersionUID = 1321731383535837192L; public HostCandidate(IceComponent component, InetAddress address, int port) { super(component, address, port, CandidateType.HOST); // A host candidate is also said to have a base, equal to itself. this.base = this; } public HostCandidate(IceComponent component, String hostname, int port) { super(component, hostname, port, CandidateType.HOST); // A host candidate is also said to have a base, equal to itself. this.base = this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy