home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / BTMTSRC3.ZIP / XFER.H < prev    next >
C/C++ Source or Header  |  1991-10-17  |  6KB  |  128 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. /*           Definitions used in BinkleyTerm File Transfer logic            */
  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. /*  This module is based largely on a similar module in OPUS-CBCS V1.03b.   */
  43. /*  The original work is (C) Copyright 1987, Wynn Wagner III. The original  */
  44. /*  author has graciously allowed us to use his code in this work.          */
  45. /*                                                                          */
  46. /*--------------------------------------------------------------------------*/
  47.  
  48.  
  49. #define  FILE_SECTION
  50. #define  WAZOO_SECTION
  51. #include "bink.h"
  52. #include "msgs.h"
  53.  
  54. #define VERSION 2.40
  55. #define BINK_MAJVERSION 2
  56. #define BINK_MINVERSION 40
  57. #ifndef OS_2
  58. #define ANNOUNCE "BinkleyTerm Version 2.40"
  59. #define xfer_id "Binkley 2.40"
  60. #else
  61. #define ANNOUNCE "BinkleyTerm/2-MultiThread v 2.40.03 by Chris Laforet"
  62. #define xfer_id "BinkOS2 2.40.03-MT"
  63. #endif
  64.  
  65. #define read_binary "rb"
  66. #define write_binary "wb"
  67. #define read_ascii "rt"
  68. #define write_ascii "wt"
  69.  
  70. #define stcgfn strcpy
  71. #define wherex() fossil_wherex()
  72. #define wherey() fossil_wherey()
  73. #define gotoxy(x,y) fossil_gotoxy(x,y)
  74. #define CLEAR_IOERR() errno = 0
  75. #define wait_for_clear() while (!OUT_EMPTY())
  76. #define TIMED_READ(a)     com_getc(a)
  77.  
  78.  
  79. /*--------------------------------------------------------------------------*/
  80. /* Ascii character mnemonics                                                */
  81. /*--------------------------------------------------------------------------*/
  82. #define NUL 0x00
  83. #define SOH 0x01
  84. #define STX 0x02
  85. #define ETX 0x03
  86. #define EOT 0x04
  87. #define ENQ 0x05
  88. #define ACK 0x06
  89. #define BEL 0x07
  90. #define BS  0x08
  91. #define HT  0x09
  92. #define LV  0x0a
  93. #define VT  0x0b
  94. #define FF  0x0c
  95. #define CR  0x0d
  96. #define SO  0x0e
  97. #define SI  0x0f
  98. #define DLE 0x10
  99. #define DC1 0x11
  100. #define DC2 0x12
  101. #define DC3 0x13
  102. #define DC4 0x14
  103. #define NAK 0x15
  104. #define SYN 0x16
  105. #define ETB 0x17
  106. #define CAN 0x18
  107. #define EM  0x19
  108. #define SUB 0x1a
  109. #define ESC 0x1b
  110. #define FS  0x1c
  111. #define GS  0x1d
  112. #define RS  0x1e
  113. #define US  0x1f
  114.  
  115. /*--------------------------------------------------------------------------*/
  116. /* Parameters for calling ZMODEM routines                                   */
  117. /*--------------------------------------------------------------------------*/
  118. #define TRUE  1
  119. #define FALSE 0
  120. #define END_BATCH (-1)
  121. #define DELETE_AFTER  '-'
  122. #define SHOW_DELETE_AFTER '^'
  123. #define TRUNC_AFTER   '#'
  124. #define NOTHING_AFTER '@'
  125. #define DO_WAZOO   TRUE
  126.  
  127. /* End of XFER.H */
  128.