|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.net.DefaultDatagramSocketFactory
public class DefaultDatagramSocketFactory
DefaultDatagramSocketFactory implements the DatagramSocketFactory
interface by simply wrapping the java.net.DatagramSocket
constructors. It is the default DatagramSocketFactory used by
DatagramSocketClient
implementations.
DatagramSocketFactory,
DatagramSocketClient,
DatagramSocketClient.setDatagramSocketFactory(org.apache.commons.net.DatagramSocketFactory)| Constructor Summary | |
|---|---|
DefaultDatagramSocketFactory()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDatagramSocketFactory()
| Method Detail |
|---|
public DatagramSocket createDatagramSocket()
throws SocketException
createDatagramSocket in interface DatagramSocketFactorySocketException - If the socket could not be created.
public DatagramSocket createDatagramSocket(int port)
throws SocketException
createDatagramSocket in interface DatagramSocketFactoryport - The port to use for the socket.
SocketException - If the socket could not be created.
public DatagramSocket createDatagramSocket(int port,
InetAddress laddr)
throws SocketException
createDatagramSocket in interface DatagramSocketFactoryport - The port to use for the socket.laddr - The local address to use.
SocketException - If the socket could not be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||