home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / LP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-07  |  905 b   |  31 lines

  1. /*
  2. *    Header file for Line Printer Utilities
  3. */
  4.  
  5. #ifndef LP_H
  6. #define LP_H
  7.  
  8. #define MAX_PRIV_PORT   1023    /* privileged TCP ports are 0..1023 */
  9. #define PRINTER_PORT    515     /* port number for LPD daemon */
  10. #define DEFAULT_PRINTER "lp"    /* standard Unix default */
  11.  
  12. /* LPD request codes */
  13. #define LPD_CHECK_QUEUE             '\1'
  14. #define LPD_PRINT_JOB               '\2'
  15. #define LPD_DISPLAY_SHORT_QUEUE     '\3'
  16. #define LPD_DISPLAY_LONG_QUEUE      '\4'
  17. #define LPD_REMOVE_JOB              '\5'
  18. #define LPD_END_TRANSFER            '\0'
  19. #define LPD_ABORT                   '\1'
  20. #define LPD_RECEIVE_CONTROL_FILE    '\2'
  21. #define LPD_RECEIVE_DATA_FILE       '\3'
  22.  
  23. /* LPD return codes */
  24. #define LPD_OK                  '\0'
  25. #define LPD_ERROR               '\1'
  26. #define LPD_NO_SPOOL_SPACE      '\2'
  27.  
  28. extern int debug;     /* 1 = print debugging info, 0 = no info */
  29.  
  30. #endif
  31.