public class PipeBasedSocketFactory extends java.lang.Object implements ClientSocketFactory
Constructor and Description |
---|
PipeBasedSocketFactory(CommandRunner commandRunner) |
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
createSocket(java.lang.String hostName,
int port)
Create a client socket.
|
public PipeBasedSocketFactory(CommandRunner commandRunner)
public java.net.Socket createSocket(java.lang.String hostName, int port) throws java.io.IOException
ClientSocketFactory
createSocket
in interface ClientSocketFactory
hostName
- host to connect to.port
- port to connect to.java.io.IOException
- Thrown if socket can not be opened.