home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / communic / pcmail / main / comm.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  1.3 KB  |  91 lines

  1. /*++
  2.  
  3. /* NAME
  4.  
  5. /*    comm 3
  6.  
  7. /* SUMMARY
  8.  
  9. /*    cico communications parameters retrieval
  10.  
  11. /* PROJECT
  12.  
  13. /*    pc-mail
  14.  
  15. /* PACKAGE
  16.  
  17. /*    cico
  18.  
  19. /* SYNOPSIS
  20.  
  21. /*    #include "params.h"
  22.  
  23. /*    #include "comm.h"
  24.  
  25. /* DESCRIPTION
  26.  
  27. /*    Implementation module for communications parameters and other
  28.  
  29. /*    global stuff that has not yet found its place.
  30.  
  31. /* AUTHOR(S)
  32.  
  33. /*    W.Z. Venema
  34.  
  35. /*    Eindhoven University of Technology
  36.  
  37. /*    Department of Mathematics and Computer Science
  38.  
  39. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  40.  
  41. /* CREATION DATE
  42.  
  43. /*    Sun Apr 12 13:37:12 GMT+1:00 1987
  44.  
  45. /* LAST MODIFICATION
  46.  
  47. /*    90/01/22 13:01:20
  48.  
  49. /* VERSION/RELEASE
  50.  
  51. /*    2.1
  52.  
  53. /*--*/
  54.  
  55.  
  56.  
  57. #include <stdio.h>
  58.  
  59.  
  60.  
  61. #include "defs.h"
  62.  
  63. #include "params.h"
  64.  
  65. #include "comm.h"
  66.  
  67.  
  68.  
  69. public int ttfd = -1;                /* comm. port */
  70.  
  71. public Info *comm = 0;                /* comm. info */
  72.  
  73. public char *password = 0;            /* uucp password */
  74.  
  75. public char rmthost[BUFSIZ] = "Unknown";    /* remote host name */
  76.  
  77.  
  78.  
  79. public int (*Read)()  = 0;            /* protocol read function */
  80.  
  81. public int (*Write)() = 0;            /* protocol write function */
  82.  
  83. public int (*Close)() = 0;            /* protocol close function */
  84.  
  85.  
  86.  
  87. public char msgin[MSGBUF];            /* message receive buffer */
  88.  
  89. public char msgout[MSGBUF];                  /* message send buffer */
  90.  
  91.