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
IOExceptionprotected void closeServerSocket()
throws IOException
IOExceptionpublic void closeFactory()
throws IOException
IOExceptionpublic Socket getConnection() throws IOException
IOExceptionCopyright © 2025. All rights reserved.