public class RawSocketCLIConnection extends Object implements CLIConnection
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
inputStream |
protected org.apache.log4j.Logger |
logger |
protected OutputStream |
outputStream |
protected Socket |
socket |
| Constructor and Description |
|---|
RawSocketCLIConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Map<String,Object> params)
Establishes a session connection to a network host and creates and stores
session parameters.
|
void |
disconnect()
Disconnects the session to the host.
|
InputStream |
inputStream() |
OutputStream |
outputStream() |
protected Socket socket
protected InputStream inputStream
protected OutputStream outputStream
protected org.apache.log4j.Logger logger
public void connect(Map<String,Object> params) throws IOException
CLIConnectionconnect in interface CLIConnectionparams - Parameters used to connect connection to the hostIOException - if any IOException when
communication with the NE.public InputStream inputStream()
inputStream in interface CLIConnectionpublic OutputStream outputStream()
outputStream in interface CLIConnectionpublic void disconnect()
throws IOException
CLIConnectiondisconnect in interface CLIConnectionIOException - if any IOException when
communication with the hostCopyright © 2016 iTransformers Labs. All rights reserved.