public class SocketTargetServerConnection extends java.lang.Object implements TargetServerConnection
TargetServerConnection.| Constructor and Description |
|---|
SocketTargetServerConnection(PortProvider portProvider)
Create a new
SocketTargetServerConnection. |
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.ByteChannel |
open(int socketTimeout)
Open a connection to the target server with the specified timeout.
|
public SocketTargetServerConnection(PortProvider portProvider)
SocketTargetServerConnection.portProvider - the port providerpublic java.nio.channels.ByteChannel open(int socketTimeout)
throws java.io.IOException
TargetServerConnectionopen in interface TargetServerConnectionsocketTimeout - the read timeoutByteChannel providing read/write access to the serverjava.io.IOException - in case of I/O errors