home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / bts310b5 / emsi.h < prev    next >
C/C++ Source or Header  |  1991-08-31  |  2KB  |  65 lines

  1. #ifndef H_EMSI
  2. #define H_EMSI
  3. /*
  4.  * emsi.h
  5.  *
  6.  * Function prototypes and constants for EMSI implementation
  7.  */
  8.  
  9. /*
  10.  * Return values from TxEmsiInit and RxEmsiInit
  11.  */
  12.  
  13. #define SESSION_FAIL    0
  14. #define SESSION_BBS     1
  15. #define SESSION_FTSC    2
  16. #define SESSION_WAZOO   3
  17. #define SESSION_EMSI    4
  18. #define SESSION_EXTERN  5
  19.  
  20. /*
  21.  * Return values from read_emsi_dat
  22.  */
  23.  
  24. #define EMSI_SUCCESS 0
  25. #define EMSI_ABORT -1
  26. #define EMSI_RETRY -2
  27.  
  28. /*
  29.  * Emsi capabilities and options
  30.  */
  31.  
  32. typedef UWORD EMSI_CAPABILITY;
  33. #define EMSI_P_DZA    0x0001        /* DirectZAP */
  34. #define EMSI_P_ZAP    0x0002        /* ZedZap */
  35. #define EMSI_P_ZMO    0x0004        /* Zmodem [ZedZip] */
  36. #define EMSI_P_JAN    0x0008        /* Janus */
  37. #define EMSI_P_KER    0x0010        /* Kermit */
  38. #define EMSI_P_NCP    0x0020        /* No compatibility (failure) */
  39. #define EMSI_P_NRQ    0x0040        /* No file requests */
  40. #define EMSI_P_ARC    0x0080        /* ARCmail */
  41. #define EMSI_P_XMA    0x0100        /* Other compression methods */
  42. #define EMSI_P_FNC    0x0200        /* MSDOS Filenames */
  43.  
  44. #define EMSI_O_HAT    0x2000        /* Hold ALL traffic */
  45. #define EMSI_O_HXT    0x4000        /* Hold compressed mail */
  46. #define EMSI_O_HRQ    0x8000        /* Hold file requests */
  47.  
  48. typedef enum { PUA, PUP, NPU } EMSI_CALL_OPTIONS;
  49.  
  50. /*
  51.  * Variables
  52.  */
  53.  
  54.  
  55. /*
  56.  * Prototypes
  57.  */
  58.  
  59. int TxEmsiInit(void);                /* Sender initiation */
  60. int RxEmsiInit(void);                /* Receiver initiation */
  61. int EMSI_sender(void);                /* Do sender session */
  62. int EMSI_receiver(void);            /* Do Receiver session */
  63.  
  64. #endif    /* H_EMSI */
  65.