home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / do101j2.arj / COMMFUNC.SCR < prev    next >
Text File  |  1991-12-03  |  3KB  |  69 lines

  1. .pg wi full clr
  2.  
  3.        ■█│                                                   │█■
  4.         ╨─═                                                  ═╨
  5. .gr reset
  6. /WALK R 2 13 "C O M M U N I C A T I O N S   F U N C T I O N S" 100
  7. .ye reset
  8. /WALK R 2 13 "                                               " 50
  9. /WALK L 2 61 "C O M M U N I C A T I O N S   F U N C T I O N S" 100
  10. /cw
  11. »%t«DO»#« has a complete set of »ye«communications functions»#« which allow you
  12. to perform »wh«asynchronous ASCII communications»#«.  These include »gr«DEC
  13. VT100 terminal emulation»#«.
  14.  
  15. .pg
  16. »%t«DO»#« can communicate with most modems or over direct connections at speeds
  17. between »ye«300»#« and »ye«9600»#« characters per second (baud).  It is not intended
  18. to provide you with complete telecommunications functionality.  For
  19. example, »%t«DO»#« does not have a directory dialer (although you COULD write
  20. one using the script language).
  21.  
  22. However, »%t«DO»#« can provide basic communications functions to extend
  23. the functionality of your scripts.
  24.  
  25. .pg clr
  26. Since we do not know the capabilities of the system on which you
  27. are running this tutorial, it does »re«NOT»#« include a working communications
  28. demonstration.  However, all communications functions are described
  29. and the script »gr«COMM.SCR»#« contains a functioning communications script.
  30.  
  31. You will have to modify »gr«COMM.SCR»#« to fit your setup, however, it will
  32. provide basic communications functionality and demonstrate some
  33. of the features available in the »%t«DO»ye« script processor»#«.
  34. .pg clr
  35.                    »ma«BASICS OF »%t«DO»ma« COMMUNICATIONS»#«
  36. .wi 4 8 80 25
  37. All »%t«DO»#« communications scripts have the same basic requirements.
  38. the following statements are the minimum requirements to have
  39. a full-screen interactive communication session using »%t«DO»#«.
  40. »wh«
  41.   /INITCOM . . .
  42.   /TERM . . .
  43.   /CLOSECOM
  44. »#«
  45. .pg clr
  46.   »ye«/INITCOM . . .»#«
  47.  
  48.   The »%t«/INITCOM»#« command initializes the communications parameters
  49.   and sets up the buffers used for communications.  »wh«It must be
  50.   executed »re«before»wh« any other communications command.»#«
  51.  
  52. .pg clr
  53.   »cy«/INITCOM . . .
  54.   »ye«/TERM . . .»#«
  55.  
  56.   The »%t«/TERM»#« command starts the actual interactive session.  Pressing
  57.   »bo«<alt-X>»#« ends the terminal session.
  58.  
  59. .pg clr
  60.   »cy«/INITCOM . . .
  61.   /TERM . . .
  62.   »ye«/CLOSECOM»#«
  63.  
  64.   The »%t«/CLOSECOM»#« command »re«ends»#« the communications session and
  65.   releases the communications buffers and other resources set
  66.   up for the session.
  67.  
  68. /ENDEXEC CLEAR
  69.