home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / BTMTSRC3.ZIP / COM.H < prev    next >
C/C++ Source or Header  |  1991-08-12  |  5KB  |  137 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  (C) Copyright 1987-90, Bit Bucket Software Co., a Delaware Corporation. */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*                Communications definitions for BinkleyTerm                */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*    For complete  details  of the licensing restrictions, please refer    */
  17. /*    to the License  agreement,  which  is published in its entirety in    */
  18. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.240.    */
  19. /*                                                                          */
  20. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  21. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  22. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  23. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  24. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  25. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  26. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  27. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  28. /*                                                                          */
  29. /*                                                                          */
  30. /* You can contact Bit Bucket Software Co. at any one of the following      */
  31. /* addresses:                                                               */
  32. /*                                                                          */
  33. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:132/491, 1:141/491  */
  34. /* P.O. Box 460398                AlterNet 7:491/0                          */
  35. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  36. /*                                Internet f491.n132.z1.fidonet.org         */
  37. /*                                                                          */
  38. /* Please feel free to contact us at any time to share your comments about  */
  39. /* our software and/or licensing policies.                                  */
  40. /*                                                                          */
  41. /*--------------------------------------------------------------------------*/
  42.  
  43.  
  44. #define BITS_7          0x02
  45. #define BITS_8          0x03
  46. #define STOP_1             0x00
  47. #define STOP_2             0x04
  48. #define ODD_PARITY      0x08
  49. #define EVEN_PARITY     0x18
  50. #define NO_PARITY       0x00
  51.  
  52. #ifndef OS_2
  53. #define BAUD_300        0x040
  54. #define BAUD_1200       0x080
  55. #define BAUD_2400       0x0A0
  56. #define BAUD_4800       0x0C0
  57. #define BAUD_9600       0x0E0
  58. #define BAUD_19200      0x000
  59. #define BAUD_38400      0x020
  60. #else
  61. #define BAUD_300        300
  62. #define BAUD_1200       1200
  63. #define BAUD_2400       2400
  64. #define BAUD_4800       4800
  65. #define BAUD_9600       9600
  66. #define BAUD_19200      19200
  67. #define BAUD_38400      38400
  68. #endif
  69.  
  70. /* Bit definitions for the Line Status Register */
  71.  
  72. #define DATA_READY         0x0100
  73. #define OVERRUN_ERR         0x0200
  74. #define PARITY_ERR         0x0400
  75. #define FRAMING_ERR         0x0800
  76. #define BREAK_INT       0x1000
  77. #define TX_HOLD_EMPTY     0x2000
  78. #define TX_SHIFT_EMPTY    0x4000
  79.  
  80. /* Bit definitions for the driver flags */
  81.  
  82. #define USE_XON            0x01
  83. #define USE_CTS            0x02
  84. #define USE_DSR            0x04
  85. #define OTHER_XON            0x08
  86.  
  87. #define BRK             0x01
  88. #define MDM             0x02
  89.  
  90. struct CONTROL
  91.     {
  92.     int carrier_mask;
  93.     int handshake_mask;
  94.     };
  95.  
  96.  
  97. struct baud_str
  98.     {
  99.     unsigned rate_value;
  100.     unsigned rate_mask;
  101.     };
  102.  
  103.  
  104. struct parse_list
  105.     {
  106.     int p_length;
  107.     char *p_string;
  108.     };
  109.  
  110.  
  111. struct secure
  112.     {
  113.     char *rq_OKFile;
  114.     char *rq_FILES;
  115.     char *rq_About;
  116.     char *rq_Template;
  117.     char *sc_Inbound;
  118.     int rq_Limit;
  119.     long byte_Limit;
  120.     };
  121.  
  122.  
  123. struct req_accum
  124.     {
  125.     int files;
  126.     long bytes;
  127.     };
  128.  
  129. #ifndef OS_2
  130.     #include "com_dos.h"
  131. #else
  132.     #include "com_os2.h"
  133. #endif
  134.  
  135. /* END OF FILE: com.h */
  136.  
  137.