home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
339.lha
/
SerMod
/
Docs
/
CONNECT.doc
< prev
next >
Wrap
Text File
|
1990-02-08
|
1KB
|
38 lines
NAME: CONNECT
SYNTAX: CONNECT <portname> <command>
DESCRIPTION:
This command tells the serial module where and how to send any
data received from the serial port. After this command is
executed, all further data received from the serial port will
be sent to <portname> with the command <command>.
EXAMPLES:
CONNECT 'ROBBS_display' 'TEXT'
CONNECT 'ROBBS_graphic' 'WRITE'
The first example will cause all received data to be sent to a
public port called 'ROBBS_display', using a 'TEXT' command.
Assuming the data received on the serial port was "abcde", the
actual string sent to 'ROBBS_display' will be
"TEXT abcde"
In the second example, assuming received data of 'draw line 0 0 5 5',
the string sent to 'ROBBS_graphic' will be
"WRITE draw line 0 0 5 5"
NOTES:
The data reveived will be sent as a 'stream' as it is received,
so it will be sent as individual packets of arbitrary length.
If you want to parse it on a line basis (or any other basis),
your application will have to handle it appropriately.
BUGS: