FileDocCategorySizeDatePackage
DatagramSocketFactory.javaAPI DocApache Commons NET 1.4.1 API2256Sat Dec 03 10:05:48 GMT 2005org.apache.commons.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 {@link org.apache.commons.net.DatagramSocketClient} . This allows you to provide your own DatagramSocket implementations and to perform security checks or browser capability requests before creating a DatagramSocket.

author
Daniel F. Savarese

Fields Summary
Constructors Summary
Methods Summary
public java.net.DatagramSocketcreateDatagramSocket()
Creates a DatagramSocket on the local host at the first available port.

exception
SocketException If the socket could not be created.

public java.net.DatagramSocketcreateDatagramSocket(int port)
Creates a DatagramSocket on the local host at a specified port.

param
port The port to use for the socket.
exception
SocketException If the socket could not be created.

public java.net.DatagramSocketcreateDatagramSocket(int port, java.net.InetAddress laddr)
Creates a DatagramSocket at the specified address on the local host at a specified port.

param
port The port to use for the socket.
param
laddr The local address to use.
exception
SocketException If the socket could not be created.