home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume10 / pcmail2 / part01 / main / comm.c < prev    next >
C/C++ Source or Header  |  1990-01-24  |  1KB  |  46 lines

  1. /*++
  2. /* NAME
  3. /*    comm 3
  4. /* SUMMARY
  5. /*    cico communications parameters retrieval
  6. /* PROJECT
  7. /*    pc-mail
  8. /* PACKAGE
  9. /*    cico
  10. /* SYNOPSIS
  11. /*    #include "params.h"
  12. /*    #include "comm.h"
  13. /* DESCRIPTION
  14. /*    Implementation module for communications parameters and other
  15. /*    global stuff that has not yet found its place.
  16. /* AUTHOR(S)
  17. /*    W.Z. Venema
  18. /*    Eindhoven University of Technology
  19. /*    Department of Mathematics and Computer Science
  20. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  21. /* CREATION DATE
  22. /*    Sun Apr 12 13:37:12 GMT+1:00 1987
  23. /* LAST MODIFICATION
  24. /*    90/01/22 13:01:20
  25. /* VERSION/RELEASE
  26. /*    2.1
  27. /*--*/
  28.  
  29. #include <stdio.h>
  30.  
  31. #include "defs.h"
  32. #include "params.h"
  33. #include "comm.h"
  34.  
  35. public int ttfd = -1;                /* comm. port */
  36. public Info *comm = 0;                /* comm. info */
  37. public char *password = 0;            /* uucp password */
  38. public char rmthost[BUFSIZ] = "Unknown";    /* remote host name */
  39.  
  40. public int (*Read)()  = 0;            /* protocol read function */
  41. public int (*Write)() = 0;            /* protocol write function */
  42. public int (*Close)() = 0;            /* protocol close function */
  43.  
  44. public char msgin[MSGBUF];            /* message receive buffer */
  45. public char msgout[MSGBUF];                  /* message send buffer */
  46.