org.mbari.siam.distributed
Class RemoteSerialPort
java.lang.Object
org.mbari.siam.distributed.RemoteSerialPort
- All Implemented Interfaces:
- java.io.Serializable
public class RemoteSerialPort
- extends java.lang.Object
- implements java.io.Serializable
RemoteSerialPort provides a network communication channel to a
DeviceService's serial port. RemoteSerialPort is instantiated by a
DeviceService, and returned to a client over the network (hence
RemoteSerialPort implements java.io.Serializable).
- See Also:
- Serialized Form
|
Constructor Summary |
RemoteSerialPort(java.net.InetAddress serverAddress,
int serverPort)
Create RemoteSerialPort, using specified server host and port. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteSerialPort
public RemoteSerialPort(java.net.InetAddress serverAddress,
int serverPort)
- Create RemoteSerialPort, using specified server host and port.
connect
public void connect()
throws java.net.UnknownHostException,
java.io.IOException
- Prepare RemoteSerialPort for use; must be called on client side.
- Throws:
java.net.UnknownHostException
java.io.IOException
write
public void write(char output)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
getServerPort
public int getServerPort()
getServerInetAddress
public java.net.InetAddress getServerInetAddress()
Copyright © 2003 MBARI.
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.