java.lang.Object | +--org.apache.commons.net.DefaultDatagramSocketFactoryAll Implemented Interfaces:
DatagramSocketFactory
DatagramSocketClient
DatagramSocketClient.setDatagramSocketFactory
DatagramSocket | 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. |
public DatagramSocket createDatagramSocket()
- If the socket could not be created.public DatagramSocket createDatagramSocket(int port)
- If the socket could not be created.public DatagramSocket createDatagramSocket(int port, InetAddress laddr)
- If the socket could not be created.