| Constructor and Description |
|---|
AsciiIONet() |
| 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,
int mleng)
Reads available response data.
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
void |
write(byte[] buff,
int offset,
int leng)
Writes command data.
|
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[] buff,
int offset,
int leng)
throws org.lsst.ccs.drivers.commons.DriverException
public int read(byte[] buff,
int offset,
int mleng)
throws org.lsst.ccs.drivers.commons.DriverException
read in interface AsciiIObuff - The buffer to receive the response dataoffset - The offset to the first available byte in the buffer:
must be < the buffer lengthmleng - The maximum number of bytes to read: must be > 0org.lsst.ccs.drivers.commons.DriverExceptionorg.lsst.ccs.drivers.commons.DriverTimeoutExceptionpublic void flush()
throws org.lsst.ccs.drivers.commons.DriverException
public void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
setTimeout in interface AsciiIOtimeout - The receive timeout (ms). 0 means no timeout.org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2016 LSST. All rights reserved.