diff --git a/src/org/ice4j/ice/LocalCandidate.java b/src/org/ice4j/ice/LocalCandidate.java new file mode 100644 index 0000000..bfce6e0 --- /dev/null +++ b/src/org/ice4j/ice/LocalCandidate.java @@ -0,0 +1,48 @@ +/* + * ice4j, the OpenSource Java Solution for NAT and Firewall Traversal. + * Maintained by the SIP Communicator community (http://sip-communicator.org). + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ +package org.ice4j.ice; + +import java.net.*; + +import org.ice4j.*; + +/** + * LocalCandidates are obtained by an agent for every stream component + * and are then included in outgoing offers or answers. + * + * @author Emil Ivov + */ +public abstract class LocalCandidate + extends Candidate +{ + + /** + * Creates a LocalCandidate instance for the specified transport + * address and properties. + * + * @param transportAddress the transport address that this candidate is + * encapsulating. + * @param parentComponent the Component that this candidate + * belongs to. + * @param type the CandidateType for this Candidate. + */ + public LocalCandidate(TransportAddress transportAddress, + Component parentComponent, + CandidateType type) + { + super(transportAddress, parentComponent, type); + } + + /** + * Gets the DatagramSocket associated with this Candidate. + * + * @return the DatagramSocket associated with this + * Candidate + */ + public abstract DatagramSocket getSocket(); +}