public class SocketFactory extends Object
Constructor and Description |
---|
SocketFactory(InetAddress localHost,
int localPort,
InetAddress remoteHost,
int remotePort) |
Modifier and Type | Method and Description |
---|---|
void |
closeFactory() |
protected void |
closeServerSocket() |
Socket |
getConnection() |
void |
setActive(String portString) |
int |
setPassive(int port) |
public SocketFactory(InetAddress localHost, int localPort, InetAddress remoteHost, int remotePort)
public int setPassive(int port) throws IOException
IOException
protected void closeServerSocket() throws IOException
IOException
public void closeFactory() throws IOException
IOException
public Socket getConnection() throws IOException
IOException
Copyright © 2023. All rights reserved.