Annotation of sbbs/sbbs3/sexyz.h, revision 1.1

1.1     ! root        1: /* sexyz.h */
        !             2: 
        !             3: /* Synchronet External X/Y/ZMODEM Transfer Program */
        !             4: 
        !             5: /* $Id: sexyz.h,v 1.2 2003/09/17 03:50:35 rswindell Exp $ */
        !             6: 
        !             7: /****************************************************************************
        !             8:  * @format.tab-size 4          (Plain Text/Source Code File Header)                    *
        !             9:  * @format.use-tabs true       (see http://www.synchro.net/ptsc_hdr.html)              *
        !            10:  *                                                                                                                                                     *
        !            11:  * Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html         *
        !            12:  *                                                                                                                                                     *
        !            13:  * This program is free software; you can redistribute it and/or                       *
        !            14:  * modify it under the terms of the GNU General Public License                         *
        !            15:  * as published by the Free Software Foundation; either version 2                      *
        !            16:  * of the License, or (at your option) any later version.                                      *
        !            17:  * See the GNU General Public License for more details: gpl.txt or                     *
        !            18:  * http://www.fsf.org/copyleft/gpl.html                                                                                *
        !            19:  *                                                                                                                                                     *
        !            20:  * Anonymous FTP access to the most recent released source is available at     *
        !            21:  * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net     *
        !            22:  *                                                                                                                                                     *
        !            23:  * Anonymous CVS access to the development source and modification history     *
        !            24:  * is available at cvs.synchro.net:/cvsroot/sbbs, example:                                     *
        !            25:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs login                       *
        !            26:  *     (just hit return, no password is necessary)                                                     *
        !            27:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src                *
        !            28:  *                                                                                                                                                     *
        !            29:  * For Synchronet coding style and modification guidelines, see                                *
        !            30:  * http://www.synchro.net/source.html                                                                          *
        !            31:  *                                                                                                                                                     *
        !            32:  * You are encouraged to submit any modifications (preferably in Unix diff     *
        !            33:  * format) via e-mail to [email protected]                                                                      *
        !            34:  *                                                                                                                                                     *
        !            35:  * Note: If this box doesn't appear square, then you need to fix your tabs.    *
        !            36:  ****************************************************************************/
        !            37: 
        !            38: #include "xmodem.h"
        !            39: #include "zmodem.h"
        !            40: 
        !            41: #define MAXERRORS      10
        !            42: 
        !            43: #if 0
        !            44: #define DLE            CTRL_P  /* Data link escape                                             */
        !            45: #define XON            CTRL_Q  /* Resume transmission                                          */
        !            46: #define XOFF           CTRL_S  /* Pause transmission                                           */
        !            47: 
        !            48: #define SOH            CTRL_A  /* Start of header                                                      */
        !            49: #define EOT            CTRL_D  /* End of transmission                                          */
        !            50: 
        !            51: #define ACK            CTRL_F  /* Acknowledge                                                          */
        !            52: #define NAK            CTRL_U  /* Negative Acknowledge                                         */
        !            53: #define CAN            CTRL_X  /* Cancel                                                                       */
        !            54: #endif
        !            55: 
        !            56: #define CPMEOF         CTRL_Z  /* CP/M End of file (^Z)                                        */
        !            57: 
        !            58: #define SEND           (1<<0)  /* Sending file(s)                                                      */
        !            59: #define RECV           (1<<1)  /* Receiving file(s)                                            */
        !            60: #define XMODEM         (1<<2)  /* Use Xmodem                                                           */
        !            61: #define YMODEM         (1<<3)  /* Use Ymodem                                                           */
        !            62: #define ZMODEM         (1<<4)  /* Use Zmodem                                                           */
        !            63: #define CRC            (1<<5)  /* Use CRC error correction                             */
        !            64: #define GMODE          (1<<6)  /* For Qmodem-G and Ymodem-G                            */
        !            65: #define DIR            (1<<7)  /* Directory specified to download to           */
        !            66: #define DEBUG          (1<<8)  /* Debug output                                                         */
        !            67: #define OVERWRITE      (1<<9)  /* Overwrite receiving files                            */
        !            68: #define IGNORE_DCD     (1<<10) /* Ignore DCD                                                           */
        !            69: #define ALARM          (1<<11) /* Alarm when starting and stopping xfer        */
        !            70: #define PAUSE_ABEND    (1<<13) /* Pause on abnormal exit                                       */
        !            71: #define TELNET         (1<<14) /* Telnet IAC escaping                                          */
        !            72: 
        !            73:                                                        /* Zmodem mode bits                                             */
        !            74: #define CTRL_ESC       (1<<0)  /* Escape all control chars                             */
        !            75: #define VAR_HDRS       (1<<1)  /* Use variable headers                                         */
        !            76: 
        !            77: #define NOINP 0x0100           /* input buffer empty (incom only) */
        !            78: 
        !            79: uint   recv_byte(SOCKET sock, int timeout, long mode);
        !            80: int            send_byte(SOCKET sock, uchar ch, int timeout, long mode);
        !            81: char*  chr(uchar ch);
        !            82: void   bail(int code);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.