home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / net.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  1.9 KB  |  97 lines

  1. /* net.n
  2.    header file for net.c */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19. #include "gopher.h"
  20.  
  21. int connectToSocket(
  22. #ifdef PROTO
  23.     char *,        /* host */
  24.     int        /* port */
  25. #endif
  26. );
  27.  
  28. void networkError(
  29. #ifdef PROTO
  30.     int,        /* gfd */
  31.     char *,        /* host */
  32.     int         /* port */
  33. #endif
  34. );
  35.  
  36. int readn(
  37. #ifdef PROTO
  38.     int,        /* fd */
  39.     char *,        /* ptr */
  40.     int        /* nbytes */
  41. #endif
  42. );
  43.  
  44. int writen(
  45. #ifdef PROTO
  46.     int,        /* fd */
  47.     char *,        /* ptr */
  48.     int        /* nbytes */
  49. #endif
  50. );
  51.  
  52. int writestring(
  53. #ifdef PROTO
  54.     int,        /* fd */
  55.     char *        /* stringptr */
  56. #endif
  57. );
  58.  
  59. int readline(
  60. #ifdef PROTO
  61.     int,        /* fd */
  62.     char *,        /* ptr */
  63.     int        /* maxlen */
  64. #endif
  65. );
  66.  
  67. int readfield(
  68. #ifdef PROTO
  69.     int,        /* fd */
  70.     char *,        /* ptr */
  71.     int        /* maxlen */
  72. #endif
  73. );
  74.  
  75. int readDelim(
  76. #ifdef PROTO
  77.     int,        /* fd */
  78.     char *,        /* ptr */
  79.     int,        /* maxlen */
  80.     char         /* delim */
  81. #endif
  82. );
  83.  
  84. int sreadword(
  85. #ifdef PROTO
  86.     char *,        /* input */
  87.     char *,        /* output */
  88.     int        /* maxlen */
  89. #endif
  90. );
  91.  
  92. void ZapCRLF(
  93. #ifdef PROTO
  94.     char *        /* inputline */
  95. #endif
  96. );
  97.