org.apache.commons.net
public class DefaultDatagramSocketFactory extends Object implements DatagramSocketFactory
See Also: DatagramSocketFactory DatagramSocketClient DatagramSocketClient
Method Summary | |
---|---|
DatagramSocket | createDatagramSocket()
Creates a DatagramSocket on the local host at the first available port.
|
DatagramSocket | createDatagramSocket(int port)
Creates a DatagramSocket on the local host at a specified port.
|
DatagramSocket | createDatagramSocket(int port, InetAddress laddr)
Creates a DatagramSocket at the specified address on the local host
at a specified port.
|
Throws: SocketException If the socket could not be created.
Parameters: port The port to use for the socket.
Throws: SocketException If the socket could not be created.
Parameters: port The port to use for the socket. laddr The local address to use.
Throws: SocketException If the socket could not be created.