home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NNTP-1.000 / NNTP-1 / nntp.1.5.11t / common / README.LIB < prev    next >
Encoding:
Text File  |  1993-10-17  |  1.4 KB  |  36 lines

  1.      This directory contains lotsa good stuff common to both
  2. the news server, support, and client programs.  The short of it is:
  3.  
  4. conf.h.dist    Configuration information for NNTP server,
  5.         support, and client programs.  Described in detail
  6.         in README in this directory. Use this to create your
  7.         own version of conf.h.
  8.  
  9. nntp.h        These are the #define's of the numeric response
  10.         codes (and other stuff) in NNTP as defined by RFC 977.
  11.  
  12. clientlib.c    This file is a collection of routines which clients
  13.         can use to talk to the NNTP server.  The code is
  14.         well documented, but briefly, the functions are
  15.  
  16.             getserverbyfile    Opens a named file and
  17.                     returns the contents,
  18.                     presumed to be a host name
  19.             server_init    Open connection to server
  20.             getsocket    Get a stream socket
  21.             get_server    Get line from server
  22.             put_server    Send line to server
  23.             close_server    Close connection
  24.  
  25.         It is worth noting that these routines use
  26.         buffered I/O, and leave the external variables
  27.         "ser_rd_fp" and "ser_wr_fp" (server read/write
  28.         file pointers, respectively) floating around
  29.         for use by programs which need them.
  30.  
  31. If you use the clientlib package to build an NNTP client of your
  32. own, you either need to define NNTPSRC on the "cc" command
  33. line when compiling clientlib.c, or add compile-type -D lines to
  34. the "cc" command line for each option.  Defining NNTPSRC will
  35. try to include "../common/conf.h", which should be used if it exists.
  36.