|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.DatagramSocket
net.java.sip.communicator.impl.protocol.jabber.JingleNodesCandidateDatagramSocket
public class JingleNodesCandidateDatagramSocket
Represents an application-purposed (as opposed to an ICE-specific) DatagramSocket for a JingleNodesCandidate.
| Constructor Summary | |
|---|---|
JingleNodesCandidateDatagramSocket(JingleNodesCandidate jingleNodesCandidate,
org.ice4j.TransportAddress localEndPoint)
Initializes a new JingleNodesdCandidateDatagramSocket instance which is to be the socket of a specific JingleNodesCandidate. |
|
| Method Summary | |
|---|---|
InetAddress |
getLocalAddress()
Gets the local address to which the socket is bound. |
int |
getLocalPort()
Returns the port number on the local host to which this socket is bound. |
InetSocketAddress |
getLocalSocketAddress()
Returns the address of the endpoint this socket is bound to, or null if it is not bound yet. |
void |
send(DatagramPacket p)
Sends a datagram packet from this socket. |
| Methods inherited from class java.net.DatagramSocket |
|---|
bind, close, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, receive, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JingleNodesCandidateDatagramSocket(JingleNodesCandidate jingleNodesCandidate,
org.ice4j.TransportAddress localEndPoint)
throws SocketException
jingleNodesCandidate - the JingleNodesCandidate which is to
use the new instance as the value of its socket propertylocalEndPoint - TransportAddress of the Jingle Nodes relay
where we will send our packet.
SocketException - if anything goes wrong while initializing the new
JingleNodesCandidateDatagramSocket instance| Method Detail |
|---|
public void send(DatagramPacket p)
throws IOException
send in class DatagramSocketp - the DatagramPacket to be sent
IOException - if an I/O error occursDatagramSocket.send(DatagramPacket)public InetAddress getLocalAddress()
If there is a security manager, its checkConnect method is first called with the host address and -1 as its arguments to see if the operation is allowed.
getLocalAddress in class DatagramSocketgetLocalSocketAddress(),
DatagramSocket.getLocalAddress()public int getLocalPort()
getLocalPort in class DatagramSocketgetLocalSocketAddress(),
DatagramSocket.getLocalPort()public InetSocketAddress getLocalSocketAddress()
getLocalSocketAddress in class DatagramSocketDatagramSocket.getLocalSocketAddress()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||