Package com.epam.common.transport.server
Class ConnectAddressSocketFactory
java.lang.Object
javax.net.SocketFactory
com.epam.common.transport.server.ConnectAddressSocketFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanavailable(int port) createSocket(String host, int port) createSocket(String host, int port, InetAddress localAddress, int localPort) createSocket(InetAddress inetAddress, int port) createSocket(InetAddress inetAddress, int port, InetAddress localAddress, int localPort) intMethods inherited from class javax.net.SocketFactory
createSocket, getDefault
-
Constructor Details
-
ConnectAddressSocketFactory
-
-
Method Details
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress inetAddress, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
available
public boolean available(int port) -
getNextAvailablePort
public int getNextAvailablePort()
-