Back Previous Next


Linguist comms package - open

Syntax:

   open {port} {name} [mode raw] [for [input] [and] [output]]

Keyword handler:

   net.eclecity.linguist.comms.keyword.CommsKOpen.class

Runtime handler(s):

   net.eclecity.linguist.comms.handler.CommsHOpen.class

Function:

This command opens a comms port (this requires javax.comm). You can specify if the channel is to be used for input only, output only or both - the default is neither so you must specify something. See write, close and on. If you include mode raw the port will be opened in binary mode, in which case you will be unable to read whole lines of text, only single bytes. See String values.

Example(s):

   open COM2 for output


Back Previous Next up a dispatcher, which is an efficient mechanism for switching