⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ckcmai.c

📁 C-Kermit源码。是使用串口/Modem和网络通讯的程序
💻 C
📖 第 1 页 / 共 5 页
字号:
/*  ckcsym.h is used for for defining symbols that normally would be defined  using -D or -d on the cc command line, for use with compilers that don't  support this feature.  Must be before any tests for preprocessor symbols.*/#include "ckcsym.h"/*  Consolidated program version information (for UNIX also see ckuver.h).  See makever() below for how they are used.*/#ifdef COMMENT#ifndef OS2                             /* Remove this for release */#ifndef BETATEST#define BETATEST#endif /* BETATEST */#endif /* OS2 */#endif /* COMMENT */#ifdef BETATEST#ifdef OS2#ifdef __DATE__#define BETADATE#endif /* __DATE__ */#endif /* OS2 */#endif /* BETATEST */#ifndef MAC/*  Note: initialize ck_s_test to "" if this is not a test version.  (*ck_s_test != '\0') can be used to decide whether to print  test-related messages.*/#ifdef BETATESTchar *ck_s_test = "Beta";               /* "Alpha", "Beta", or "" */char *ck_s_tver = "11+";		/* Test version number or "" */#elsechar *ck_s_test = "";                   /* Not a test */char *ck_s_tver = "";#endif /* BETATEST */#else /* MAC */char *ck_s_test = "Pre-Alpha";          /* Mac Kermit is always a test... */char *ck_s_tver = "";#endif /* MAC */#ifdef BETADATE                         /* Date of this version or edit */char *ck_s_date = __DATE__;             /* Compilation date */#elsechar *ck_s_date = "8 Feb 2000";		/* Hand-crafted date */#endif /* BETADATE */#ifdef UNIXstatic char sccsid[] = "@(#)C-Kermit 7.0.197";#endif /* UNIX */char *ck_s_ver = "7.0.197";             /* C-Kermit version string */long  ck_l_ver = 700197L;               /* C-Kermit version number */#ifdef OS2char *ck_s_xver = "1.1.19";             /* Product-specific version string */long  ck_l_xver = 1119L;                /* Product-specific version number */#else#ifdef MACchar *ck_s_xver = "0.995";              /* Product-specific version string */long  ck_l_xver = 995L;                 /* Product-specific version number */#elsechar *ck_s_xver = "";                   /* Don't touch these... */long  ck_l_xver = 0L;                   /* they are filled in at runtime */#endif /* MAC */#endif /* OS2 */#ifdef OS2char *ck_s_name = "Kermit 95";          /* Program name */#else#ifdef MACchar *ck_s_name = "Mac Kermit";#elsechar *ck_s_name = "C-Kermit";#endif /* MAC */#endif /* OS2 */char *ck_s_who = "";                    /* Where customized, "" = not. */char *ck_patch = "";                    /* Patch info, if any. */#define CKVERLEN 128char versiox[CKVERLEN];                 /* Version string buffer  */char *versio = versiox;                 /* These are filled in at */long vernum, xvernum;                   /* runtime from above.    */#define CKCMAI#include "ckcasc.h"                     /* ASCII character symbols */#include "ckcdeb.h"                     /* Debug & other symbols */char * myname = NULL;                   /* The name I am called by *//*  C K C M A I  --  C-Kermit Main program  *//*  Author: Frank da Cruz (fdc@columbia.edu),  Columbia University Academic Information Systems, New York City.COPYRIGHT NOTICE:*/char *copyright[] = {#ifdef pdp11"Copyright (C) 1985, 2000, Trustees of Columbia University, NYC.","All rights reserved."," ",#else#ifdef OS2"Copyright (C) 1985, 2000, Trustees of Columbia University in the City of New","York.  All rights reserved.  This software is furnished under license","and may not be reproduced without license to do so.  This copyright notice","must not be removed, altered, or obscured."," ","  THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE","  TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK AS TO ITS","  FITNESS FOR ANY PURPOSE, AND WITHOUT WARRANTY BY THE TRUSTEES OF","  COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK OF ANY KIND, EITHER","  EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED","  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.","  THE TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK SHALL NOT","  BE LIABLE FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL,","  OR CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OR IN","  CONNECTION WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS","  HEREAFTER ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.  YOU SHALL","  INDEMNIFY AND HOLD HARMLESS THE TRUSTEES OF COLUMBIA UNIVERSITY IN","  THE CITY OF NEW YORK, ITS EMPLOYEES AND AGENTS FROM AND AGAINST ANY","  AND ALL CLAIMS, DEMANDS, LOSS, DAMAGE OR EXPENSE (INCLUDING","  ATTORNEYS' FEES) ARISING OUT OF YOUR USE OF THIS SOFTWARE."," ",#else"Copyright (C) 1985, 2000,","  The Trustees of Columbia University in the City of New York.","  All rights reserved."," ","PERMISSIONS:"," ","The C-Kermit software may be obtained directly from the Kermit Project at","Columbia University (or from any source explicitly licensed by the Kermit","Project or implicitly licensed by Clause (A) below) by any individual for","his or her OWN USE, and by any company or other organization for its own","INTERNAL DISTRIBUTION and use, including installation on servers that are","accessed by customers or clients, WITHOUT EXPLICIT LICENSE."," ","Conditions for REDISTRIBUTION are as follows:"," ","(A) The C-Kermit software, in source and/or binary form, may be","    included WITHOUT EXPLICIT LICENSE in distributions of OPERATING","    SYSTEMS that have OSI (Open Source Initiative, www.opensource.org)","    approved licenses, even if non-Open-Source applications (but not","    operating systems) are included in the same distribution.  Such","    distributions include, but are not limited to, CD-ROM, FTP site,","    Web site, or preinstalled software on a new GENERAL-PURPOSE","    computer, as long as the primary character of the distribution is","    an Open Source operating system with accompanying utilities.  The","    C-Kermit source code may not be changed without the consent of the","    Kermit Project, which will not be unreasonably withheld (this is","    simply a matter of keeping a consistent and supportable code base)."," ","(B) Inclusion of C-Kermit software in whole or in part, in any form, in","    or with any product not covered by Clause (A), or its distribution","    by any commercial enterprise to its actual or potential customers","    or clients except as in Clause (A), requires a license from the","    Kermit Project, Columbia University; contact kermit@columbia.edu."," ","The name of Columbia University may not be used to endorse or promote","products derived from or including the C-Kermit software without specific","prior written permission."," ","DISCLAIMER:"," ","  THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE","  TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK AS TO ITS","  FITNESS FOR ANY PURPOSE, AND WITHOUT WARRANTY BY THE TRUSTEES OF","  COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK OF ANY KIND, EITHER","  EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED","  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.","  THE TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK SHALL NOT","  BE LIABLE FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL,","  OR CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR","  IN CONNECTION WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS","  HEREAFTER ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.  YOU SHALL","  INDEMNIFY AND HOLD HARMLESS THE TRUSTEES OF COLUMBIA UNIVERSITY IN","  THE CITY OF NEW YORK, ITS EMPLOYEES AND AGENTS FROM AND AGAINST ANY","  AND ALL CLAIMS, DEMANDS, LOSS, DAMAGE OR EXPENSE (INCLUDING","  ATTORNEYS' FEES) ARISING OUT OF YOUR USE OF THIS SOFTWARE."," ","The above copyright notice, permissions notice, and disclaimer may not be","removed, altered, or obscured and shall be included in all copies of the","C-Kermit software.  The Trustees of Columbia University in the City of","New York reserve the right to revoke this permission if any of the terms","of use set forth above are breached.",#endif /* OS2 */#endif /* pdp11 */#ifdef OS2"Portions Copyright (C) 1995, Oy Online Solutions Ltd., Jyvaskyla, Finland.",#endif /* OS2 */#ifdef CK_AUTHENTICATION"Portions Copyright (C) 1990, Massachusetts Institute of Technology.",#ifdef CK_ENCRYPTION"Portions Copyright (C) 1991, 1993 Regents of the University of California.","Portions Copyright (C) 1991, 1992, 1993, 1994, 1995 by AT&T.","Portions Copyright (C) 1995, 1997, Eric Young <eay@cryptosoft.com>.",#endif /* CK_ENCRYPTION */#ifdef CK_SRP"Portions Copyright (C) 1997, Stanford University.",#endif /* CK_SRP */#endif /* CK_AUTHENTICATION */#ifndef pdp11" ","For further information, contact the Kermit Project, Columbia University,","612 West 115th Street, New York NY 10025-7799, USA; phone +1 (212) 854 3703,","fax +1 (212) 663 8202 or +1 (212) 662 6442, email kermit@columbia.edu,","Web http://www.columbia.edu/kermit/ or http://www.kermit-project.org/.",#endif /* pdp11 */""};/*DOCUMENTATION: "Using C-Kermit" by Frank da Cruz and Christine M. Gianone,  Digital Press / Butterworth-Heinemann, Woburn MA, USA.  Second edition (1997), ISBN 1-55558-164-1.  Order from Digital Press:    +1 (800) 366-2665  Or from Columbia University: +1 (212) 854-3703For Kermit 95, also:  "Kermit 95" by Christine M. Gianone and Frank da Cruz,  Manning Publications, Greenwich CT, USA (1998) - Online.ACKNOWLEDGMENTS:  The Kermit file transfer protocol was developed at the Columbia University  Center for Computing Activities (CUCCA), which was since renamed to Columbia  University Academic Information Systems (AcIS).  Kermit is named after  Kermit the Frog, star of the television series THE MUPPET SHOW; the name is  used by permission of Henson Associates, Inc.  Thanks to at least the following people for their contributions to this  program over the years, and apologies to anyone who was inadvertantly  omitted:   Chris Adie, Edinburgh U, Scotland (OS/2)   Robert Adsett, University of Waterloo, Canada   Larry Afrin, Clemson U   Jeffrey Altman, Columbia University   Greg Andrews, Telebit Corp   Barry Archer, U of Missouri   Robert Andersson, International Systems A/S, Oslo, Norway   Chris Armstrong, Brookhaven National Lab (OS/2)   William Bader, Software Consulting Services, Nazareth, PA   Fuat Baran, Columbia U   Stan Barber, Rice U   Jim Barbour, U of Colorado   Donn Baumgartner, Dell   Nelson Beebe, U of Utah   Gerry Belanger, Cognitronics   Karl Berry, UMB   Mark Berryman, SAIC   Dean W Bettinger, SUNY   Gary Bilkus   Peter Binderup, Denmark   David Bolen, Advanced Networks and Services, Inc.   Marc Boucher, U of Montreal   Charles Brooks, EDN   Bob Brown   Mike Brown, Purdue U   Jack Bryans, California State U at Long Beach   Mark Buda, DEC (VMS)   Fernando Cabral, Padrao iX, Brasilia   Bjorn Carlsson, Stockholm University Computer Centre QZ, Sweden   Bill Catchings, (formerly of) Columbia U   Bob Cattani, Columbia U CS Dept   Davide Cervone, Rochester U   Seth Chaiklin, Denmark   John Chandler, Harvard U / Smithsonian Astronomical Observatory   Bernard Chen, UCLA   Andrew A Chernov, RELCOM Team, Moscow   John L Chmielewski, AT&T, Lisle, IL   Howard Chu, U of Michigan   Bill Coalson, McDonnell Douglas   Bertie Coopersmith, London   Chet Creider, U of Western Ontario   Alan Crosswell, Columbia U   Jeff Damens, (formerly of) Columbia U   Mark Davies, Bath U, UK   Sin-itirou Dezawa, Fujifilm, Japan   Joe R. Doupnik, Utah State U   Frank Dreano, Honeywell   John Dunlap, U of Washington   Alex Dupuy, SMART.COM   David Dyck, John Fluke Mfg Co.   Stefaan A. Eeckels, Eurokom, Luxembourg   Paul Eggert, Twin Sun, Inc., El Segundo, CA   Bernie Eiben, DEC   Peter Eichhorn, Assyst International   Kristoffer Eriksson, Peridot Konsult AB, Oerebro, Sweden   John R. Evans, IRS, Kansas City   Glenn Everhart, RCA Labs   Charlie Finan, Cray Research   Herm Fischer, Encino, CA (extensive contributions to version 4.0)   Carl Fongheiser, CWRU   Mike Freeman, Bonneville Power Authority   Marcello Frutig, Catholic University, Sao Paulo, Brazil (X.25 support)   Hirofumi Fujii, Japan Nat'l Lab for High Energy Physics, Tokyo (Kanji)   Chuck Fuller, Westinghouse Corporate Computer Services   Andy Fyfe, Caltech   Christine M. Gianone, Columbia U   John Gilmore, UC Berkeley   Madhusudan Giyyarpuram, HP   Rainer Glaschick, Siemens AG, Paderborn   William H. Glass   German Goldszmidt, IBM   Chuck Goodhart, NASA   Alistair Gorman, New Zealand   Richard Gration, ADFA, Australia   Chris Green, Essex U, UK   Alan Grieg, Dundee Tech, Scotland   Yekta Gursel, MIT   Jim Guyton, Rand Corp   Michael Haertel   Bob Hain, UMN   Marion Hakanson, ORST   Richard Hamilton   John Hamilston, Iowa State U   Simon Hania, Netherlands   Stan Hanks, Rice U.   Ken Harrenstein, SRI   Eugenia Harris, Data General (AOS/VS)   David Harrison, Kingston Warren Corp   Lucas Hart, Oregon State University   James Harvey, Indiana/Purdue U (VMS)   Rob Healey   Chuck Hedrick, Rutgers U   Ron Heiby, Technical Systems Division, Motorola Computer Group   Steve Hemminger, Tektronix   Christian Hemsing, RWTH Aachen, Germany (OS-9)   Randolph Herber, US DOE,   Andrew Herbert, Monash Univ, Australia   Mike Hickey, ITI   Dan Hildebrand, QNX Software Systems Inc, Kanata, ON (QNX)   R E Hill   Stephan Hoffman-Emden   Bill Homer, Cray Research

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -