Package org.globus.net
Class DatagramSocketFactory
- java.lang.Object
-
- org.globus.net.DatagramSocketFactory
-
public class DatagramSocketFactory extends java.lang.ObjectThis 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).
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDatagramSocketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.DatagramSocketcreateDatagramSocket()java.net.DatagramSocketcreateDatagramSocket(int port)java.net.DatagramSocketcreateDatagramSocket(int port, java.net.InetAddress localAddr)static DatagramSocketFactorygetDefault()Returns the default instance of this class.
-
-
-
Method Detail
-
getDefault
public static DatagramSocketFactory getDefault()
Returns the default instance of this class.- Returns:
- DatagramSocketFactory instance of this class.
-
createDatagramSocket
public java.net.DatagramSocket createDatagramSocket() throws java.io.IOException- Throws:
java.io.IOException
-
createDatagramSocket
public java.net.DatagramSocket createDatagramSocket(int port) throws java.io.IOException- Throws:
java.io.IOException
-
createDatagramSocket
public java.net.DatagramSocket createDatagramSocket(int port, java.net.InetAddress localAddr) throws java.io.IOException- Throws:
java.io.IOException
-
-