ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.oroinc.net.DatagramSocketFactory

public interface DatagramSocketFactory
The DatagramSocketFactory interface provides a means for the programmer to control the creation of datagram sockets and provide his own DatagramSocket implementations for use by all classes derived from DatagramSocketClient . This allows you to provide your own DatagramSocket implementations and to perform security checks or browser capability requests before creating a DatagramSocket.

Copyright © 1997-1998 Original Reusable Objects, Inc. All rights reserved.


Method Index

 o createDatagramSocket()
Creates a DatagramSocket on the local host at the first available port.
 o createDatagramSocket(int)
Creates a DatagramSocket on the local host at a specified port.
 o createDatagramSocket(int, InetAddress)
Creates a DatagramSocket at the specified address on the local host at a specified port.

Methods

 o createDatagramSocket
 public abstract 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.
 o createDatagramSocket
 public abstract 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.
 o createDatagramSocket
 public abstract 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.

ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index