public class TcpIpDriver extends InstrumentDriver
commandSeparation, encoding, instrument, interceptors, responseTermination, responseTimeout| Constructor and Description |
|---|
TcpIpDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
disconnect() |
String |
getDefaultRequestTermination()
Returns the driver-specific default pattern for terminating requests.
|
void |
init(String name,
YConfiguration config) |
void |
readAvailable(ResponseBuffer responseBuffer,
int timeout) |
void |
write(byte[] cmd) |
command, getCommandSeparation, getName, getResponseTermination, getResponseTimeoutpublic void init(String name, YConfiguration config)
init in class InstrumentDriverpublic void connect()
throws IOException
connect in class InstrumentDriverIOExceptionpublic void disconnect()
throws IOException
disconnect in class InstrumentDriverIOExceptionpublic String getDefaultRequestTermination()
InstrumentDriverReturn null to do no request termination.
getDefaultRequestTermination in class InstrumentDriverpublic void write(byte[] cmd)
throws IOException
write in class InstrumentDriverIOExceptionpublic void readAvailable(ResponseBuffer responseBuffer, int timeout) throws IOException
readAvailable in class InstrumentDriverIOExceptionCopyright © 2020 Space Applications Services. All rights reserved.