home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 341b.lha / uucp1_v1.03d / src / uucico / uucp.h < prev    next >
C/C++ Source or Header  |  1990-01-28  |  1KB  |  45 lines

  1. /*
  2.  * @(#)uucp.h 1.5 87/08/13 -- uucp.h Copyright 1987 by John Gilmore
  3.  *
  4.  * Header file for gnuucp.
  5.  *
  6.  * Pieces that look like they might be taken from Unix uucp are
  7.  * cribbed with the aid of public domain uucp modules (like the F-protocol)
  8.  * that use that interface.
  9.  *
  10.  * Ported to Amiga by William Loftus
  11.  * Changes Copyright 1988 by William Loftus.  All rights reserved.
  12.  */
  13.  
  14. #define Ifn    FOO    /* file descriptor of the "phone line" */
  15.  
  16. #define ASSERT(cond, msg, moremsg, huh) /**/
  17.  
  18. /* I may have these flipped from what Unix uses... */
  19. /* BUT: my code depends on these values in if (foo()) statements, sigh */
  20. #define SUCCESS 0
  21. #define FAIL    1
  22.  
  23. #define LOG
  24.  
  25. #define MAXMSGLEN    ((NAMESIZE*4)+SLOP)     /* ?>?? FIXME */
  26. #define MAXMSGTIME    60    /* Timeout period for rdmsg */
  27. #define MAX_HOST    20    /* Host name length (uucp does 7) */
  28. #define MAX_LSYS    500    /* Max length of an L.sys line in chars */
  29. #define MAX_CTLLINE    100    /* Max length of a usenet.ctl line */
  30.  
  31. #define CTL_DELIM    " \t\n\r"       /* Delimiters for usenet.ctl */
  32.  
  33. extern int debug;        /* Debugging level */
  34.  
  35. /*
  36.  * Timeout for raw characters -- if we don't hear a char within BYTE_TIMEOUT
  37.  * seconds, we assume the other side has gone away.  Has nothing to do with
  38.  * retransmission timeouts (if any!).
  39.  */
  40. #define BYTE_TIMEOUT    40
  41. #define BYTE_TO     40
  42.  
  43. #define SLOP        10        /* Slop space on arrays */
  44.  
  45.