SocketInputPort
Socket Input modules let a Neat Tools program accept input generated on a remote site.
Module
|
+-- Input Device
|
+-- SocketInputPort
Input streams
none
Output streams
A single byte stream, byteStream.
Fields
- handle, set by the "startUp" method
- portNumber, set by constructor
Methods
- startUp() -- creates a thread which waits for a connection on a particular
socket. The "running" field of the InputDevice is set to true once a
connection is established with a remote site.
- shutDown() -- breaks the connection with the remote site, if any.
- update() -- reads any bytes available on the socket and places them
in the byteStream output stream.