home *** CD-ROM | disk | FTP | other *** search
/ BBS 1 / BBS#1.iso / maximus / fddev220.arj / C.ARJ / UNDIAL.H < prev   
C/C++ Source or Header  |  1993-06-28  |  2KB  |  51 lines

  1. /*
  2. **  undial.h
  3. **
  4. **  Structures for NODIAL.FD
  5. **
  6. **  Copyright 1991-1993 Joaquim Homrighausen; All rights reserved.
  7. **
  8. **  Last revised: 93-06-18                         FrontDoor 2.11+
  9. **
  10. **  -------------------------------------------------------------------------
  11. **  This information is not necessarily final and is subject to change at any
  12. **  given time without further notice
  13. **  -------------------------------------------------------------------------
  14. */
  15. #ifndef __UNDIAL_H__
  16. #define __UNDIAL_H__
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. #define MAXUNDIAL       200           /*Maximum number of undialable systems*/
  23. #define UNDIAL_TROUBLE  1                                  /*Got one failure*/
  24. #define UNDIAL_WORSE    2                                 /*Got two failures*/
  25. #define UNDIAL_NOMORE   3                   /*Got three failures, undialable*/
  26.  
  27. /*
  28. **    When the Mailer reaches the maximum number of resend retries for a system
  29. **    during an event (session handshake failures, bad sends, etc.) it bumps
  30. **    the 'Badness' counter one. Once it reaches three (i.e. the Mailer has
  31. **    reached the resend limit in three separate events), the system is flagged
  32. **    as 'hard' undialable and the Mailer will no longer attempt to call it.
  33. */
  34. typedef struct
  35.     {
  36.     unsigned short int
  37.             Zone, Net, Node, Point;           /*Address of undialable system*/
  38.     unsigned long
  39.             PhoneCRC;                       /*CRC-32 of raw telephone number*/
  40.     unsigned short int
  41.             Badness;                          /*How undialable the system is*/
  42.     }
  43.     NoDialRec;
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif
  49.  
  50. /* end of file "undial.h" */
  51.