com.epam.common.transport.server
Class ConnectAddressSocketFactory
java.lang.Object
javax.net.SocketFactory
com.epam.common.transport.server.ConnectAddressSocketFactory
public class ConnectAddressSocketFactory
- extends SocketFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectAddressSocketFactory
public ConnectAddressSocketFactory(String connectAddress)
createSocket
public Socket createSocket(String host,
int port)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(String host,
int port,
InetAddress localAddress,
int localPort)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(InetAddress inetAddress,
int port)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(InetAddress inetAddress,
int port,
InetAddress localAddress,
int localPort)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
available
public boolean available(int port)
getNextAvailablePort
public int getNextAvailablePort()
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.