public interface DatagramSocketFactory
DatagramSocketClient
.
This allows you to provide your own DatagramSocket implementations and
to perform security checks or browser capability requests before
creating a DatagramSocket.
| Modifier and Type | Method and Description |
|---|---|
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.
|
DatagramSocket createDatagramSocket() throws SocketException
SocketException - If the socket could not be created.DatagramSocket createDatagramSocket(int port) throws SocketException
port - The port to use for the socket.SocketException - If the socket could not be created.DatagramSocket createDatagramSocket(int port, InetAddress laddr) throws SocketException
port - The port to use for the socket.laddr - The local address to use.SocketException - If the socket could not be created.Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.