home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume3 / pcmail / part05 / comm.h < prev    next >
C/C++ Source or Header  |  1989-02-03  |  2KB  |  77 lines

  1. /*++
  2. /* NAME
  3. /*      comm 5
  4. /* SUMMARY
  5. /*      cico systems parameters
  6. /* PROJECT
  7. /*      pc-mail
  8. /* PACKAGE
  9. /*      cico
  10. /* SYNOPSIS
  11. /*      #include "params.h"
  12. /*      #include "comm.h"
  13. /* DESCRIPTION
  14. /* .nf
  15.  
  16. /* /* roles and other behavioural codes */
  17.  
  18. #define MASTER    1            /* who sends files */
  19. #define SLAVE    2            /* who receives files */
  20. #define DONE    3            /* no more files */
  21.  
  22. #define YES    'Y'
  23. #define NO    'N'
  24.  
  25. /* /* communications parameters (see params.h) */
  26.  
  27. #define COMM_LINE    (comm[P_PORT].strval)
  28. #define COMM_RATE    (comm[P_BAUD].strval)
  29. #define DIAL_SEQUENCE    (comm[P_DIAL].strval)
  30. #define LOGIN_NAME    (comm[P_LOGIN].strval)  
  31. #define DISC_SEQUENCE    (comm[P_DISC].strval)
  32.  
  33. /* /* related info */
  34.  
  35. extern int ttfd;            /* comm. port */
  36. extern Info *comm;            /* comm. info */
  37. extern char *password;            /* password */
  38. extern char rmthost[];            /* remote system name */
  39.  
  40. /* /* functions that use the above */
  41.  
  42. extern char *rmtname();            /* make remote spool-file name */
  43. extern char *locname();            /* make local spool-file name */
  44.  
  45. /* /* protocol function pointers */
  46.  
  47. extern int (*Read)();            /* protocol read */
  48. extern int (*Write)();            /* protocol write */
  49. extern int (*Close)();            /* protocol close */
  50.  
  51. /* /* use these at your own risk */
  52.  
  53. #define MSGBUF       4096        /* message buffer size */
  54.  
  55. extern char msgin[MSGBUF];        /* message receive buffer */
  56. extern char msgout[MSGBUF];        /* message send buffer */
  57.  
  58. /* /* message i/o functions */
  59.  
  60. extern int isok();            /* do request; get yes or no */
  61. extern char *talk();            /* send message */
  62. extern char *hear();            /* receive message */
  63. /* SEE ALSO
  64. /*      comm(3) implementation module
  65. /* AUTHOR(S)
  66. /*      W.Z. Venema
  67. /*      Eindhoven University of Technology
  68. /*      Department of Mathematics and Computer Science
  69. /*      Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  70. /* CREATION DATE
  71. /*      Sun Apr 12 13:52:39 GMT+1:00 1987
  72. /* LAST MODIFICATION
  73. /*    Mon Apr  4 23:36:42 MET 1988
  74. /* VERSION/RELEASE
  75. /*    1.3
  76. /*--*/
  77.