Methods Summary |
---|
public java.net.DatagramSocket | createDatagramSocket()Creates a DatagramSocket on the local host at the first available port.
return new DatagramSocket();
|
public java.net.DatagramSocket | createDatagramSocket(int port)Creates a DatagramSocket on the local host at a specified port.
return new DatagramSocket(port);
|
public java.net.DatagramSocket | createDatagramSocket(int port, java.net.InetAddress laddr)Creates a DatagramSocket at the specified address on the local host
at a specified port.
return new DatagramSocket(port, laddr);
|