Package org.globus.net
Class DatagramSocketFactory
java.lang.Object
org.globus.net.DatagramSocketFactory
This factory allows for creating datagram sockets.
If the udp.source.port.range system property is set it will create
datagram sockets within the specified local port range (if the local port
number is set to 0).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDatagramSocket
(int port) createDatagramSocket
(int port, InetAddress localAddr) private DatagramSocket
createDatagramSocket
(InetAddress localAddr) static DatagramSocketFactory
Returns the default instance of this class.
-
Field Details
-
defaultFactory
-
portRange
-
-
Constructor Details
-
DatagramSocketFactory
protected DatagramSocketFactory()
-
-
Method Details
-
getDefault
Returns the default instance of this class.- Returns:
- DatagramSocketFactory instance of this class.
-
createDatagramSocket
- Throws:
IOException
-
createDatagramSocket
- Throws:
IOException
-
createDatagramSocket
- Throws:
IOException
-
createDatagramSocket
- Throws:
IOException
-