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 >
Text File  |  1990-02-08  |  1KB  |  38 lines

  1.  
  2. NAME:    CONNECT
  3.  
  4. SYNTAX:    CONNECT <portname> <command>
  5.  
  6. DESCRIPTION:
  7.  
  8.     This command tells the serial module where and how to send any
  9.     data received from the serial port. After this command is
  10.     executed, all further data received from the serial port will
  11.     be sent to <portname> with the command <command>.
  12.  
  13. EXAMPLES:
  14.  
  15.         CONNECT 'ROBBS_display' 'TEXT'
  16.         CONNECT 'ROBBS_graphic' 'WRITE'
  17.  
  18.     The first example will cause all received data to be sent to a
  19.     public port called 'ROBBS_display', using a 'TEXT' command.
  20.     Assuming the data received on the serial port was "abcde", the
  21.     actual string sent to 'ROBBS_display' will be
  22.  
  23.        "TEXT abcde"
  24.  
  25.     In the second example, assuming received data of 'draw line 0 0 5 5',
  26.     the string sent to 'ROBBS_graphic' will be
  27.  
  28.        "WRITE draw line 0 0 5 5"
  29.  
  30. NOTES:
  31.  
  32.     The data reveived will be sent as a 'stream' as it is received,
  33.     so it will be sent as individual packets of arbitrary length.
  34.     If you want to parse it on a line basis (or any other basis),
  35.     your application will have to handle it appropriately.
  36.  
  37. BUGS:
  38.