All Packages Class Hierarchy This Package Previous Next Index
Class com.oroinc.net.DefaultDatagramSocketFactory
java.lang.Object
|
+----com.oroinc.net.DefaultDatagramSocketFactory
- public class DefaultDatagramSocketFactory
- extends Object
- implements DatagramSocketFactory
DefaultDatagramSocketFactory implements the DatagramSocketFactory
interface by simply wrapping the java.net.DatagramSocket
constructors. It is the default DatagramSocketFactory used by
DatagramSocketClient implementations.
Copyright © 1997-1998 Original Reusable Objects, Inc.
All rights reserved.
- See Also:
- DatagramSocketFactory, DatagramSocketClient, setSocketFactory
-
DefaultDatagramSocketFactory()
-
-
createDatagramSocket()
- Creates a DatagramSocket on the local host at the first available port.
-
createDatagramSocket(int)
- Creates a DatagramSocket on the local host at a specified port.
-
createDatagramSocket(int, InetAddress)
- Creates a DatagramSocket at the specified address on the local host
at a specified port.
DefaultDatagramSocketFactory
public DefaultDatagramSocketFactory()
createDatagramSocket
public DatagramSocket createDatagramSocket() throws SocketException
- Creates a DatagramSocket on the local host at the first available port.
- Throws: SocketException
- If the socket could not be created.
createDatagramSocket
public DatagramSocket createDatagramSocket(int port) throws SocketException
- Creates a DatagramSocket on the local host at a specified port.
- Parameters:
- port - The port to use for the socket.
- Throws: SocketException
- If the socket could not be created.
createDatagramSocket
public DatagramSocket createDatagramSocket(int port,
InetAddress laddr) throws SocketException
- Creates a DatagramSocket at the specified address on the local host
at a specified port.
- Parameters:
- port - The port to use for the socket.
- laddr - The local address to use.
- Throws: SocketException
- If the socket could not be created.
All Packages Class Hierarchy This Package Previous Next Index