| Constructor and Description |
|---|
ScpiCommNet() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
void |
flush()
Flushes any available response data.
|
void |
open(String host,
int port,
int dummy)
Opens a connection.
|
int |
read(byte[] buff,
int offset)
Reads available response data.
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
void |
write(byte[] command)
Writes a command.
|
public void open(String host, int port, int dummy) throws org.lsst.ccs.drivers.commons.DriverException
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
public void write(byte[] command)
throws org.lsst.ccs.drivers.commons.DriverException
public int read(byte[] buff,
int offset)
throws org.lsst.ccs.drivers.commons.DriverException
public void flush()
throws org.lsst.ccs.drivers.commons.DriverException
public void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
setTimeout in interface ScpiCommtimeout - The receive timeout (ms). 0 means no timeout.org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2014 LSST. All Rights Reserved.