public class ConnectAddressSocketFactory extends SocketFactory
Constructor and Description |
---|
ConnectAddressSocketFactory(String connectAddress) |
Modifier and Type | Method and Description |
---|---|
boolean |
available(int port) |
Socket |
createSocket(InetAddress inetAddress,
int port) |
Socket |
createSocket(InetAddress inetAddress,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort) |
int |
getNextAvailablePort() |
createSocket, getDefault
public ConnectAddressSocketFactory(String connectAddress)
public Socket createSocket(String host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress inetAddress, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress inetAddress, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public boolean available(int port)
public int getNextAvailablePort()
Copyright © 2000–2022 EPAM Systems. All rights reserved.