亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ckudia.c

?? C 語言核心協議的 C 語言源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
char *dialv = "Dial Command, V2.0(008) 26 Jul 85";/*  C K U D I A  --  Dialing program for connection to remote system *//* Author: Herm Fischer (HFISCHER@USC-ECLB) Contributed to Columbia University for inclusion in C-Kermit. Copyright (C) 1985, Herman Fischer, 16400 Ventura Blvd, Encino CA 91436 Permission is granted to any individual or institution to use, copy, or redistribute this software so long as it is not sold for profit, provided this copyright notice is retained.  ------ This module should work under all versions of Unix.  It calls externally defined system-depended functions for i/o, but depends upon the existence of various modem control functions. This module, and the supporting routines in the ckutio.c module, assume that the computer and modem properly utilize the following data communi- cations signals (that means one should prepare the modem to use, not circumvent, these signals):     Data Terminal Ready:  This signal is asserted by the computer     when Kermit is about to ask the modem to dial a call, and is     removed when Kermit wishes to have the modem hang up a call.     The signal is asserted both while Kermit is asking the modem     to dial a specific number, and after connection, while Kermit     is in a data exchange mode.       Carrier detect:  This signal must be asserted by the modem when     a carrier is detected from a remote modem on a communications     circuit.  It must be removed by the modem when the circuit     disconnects or is hung up.  (Carrier detect is ignored while     Kermit is asking the modem to dial the call, because there is     no consistant usage of this signal during the dialing phase     among different modem manufacturers.)*//* * Modifications: * *	21-Jul-85	Fixed failure returns hanging on no carrier signal *			Requires tthang change too (ckutio.c revision) *							-- Herm Fischer * *	28-Jun-85	Fixed bug with defaulting the modem-failure message *			in lbuf. *							-- Dan Schullman * *	27-Jun-85	Merged in code from Joe Orost at Berkeley for *			supporting the US Robotics modem, which included *			changing the single characters in MDMINF into *			multi-character strings and modifying waitFor. *							-- Dan Schullman * *	26-Jun-85	Allow interrupts to be used to abort dialing, *			and ring the bell when a connection is made. *			Reorganized some of the failure paths to use the *			same code, and now close the line on failures. *			Allow use of stored numbers with the DF100 and *			DF200 modems.  Handlers now declared after the *			call to setjmp. *							-- Dan Schullman * *	24-May-85	DF03, DF100-series, DF200-series, and "unknown" modem *			support added.  Also restructured the various data *			tables, fixed some bugs related to missing data and *			missing case labels, and modified the failure message *			to display the "reason" given by the modem. *							-- Dan Schullman *//* * To add support for another modem, do the following: * *	Define a modem number symbol (n_XXX) for it, keeping the list *	in alphabetical and numerical order, and renumbering the values *	as necessary. * *	Create a MDMINF structure for it, again keeping the list alphabetical *	for sanity's sake. * *	Add the address of the MDMINF structure to the ptrtab array, again *	in alphabetical and numerical order. * *	Add the "user visible" modem name and corresponding modem number to *	the mdmtab array, again in alphabetical order. * *	Read through the code and add modem-specific sections as necessary. *//* * The intent of the "unknown" modem is hopefully to allow KERMIT to support * unknown modems by having the user type the entire autodial sequence * (possibly including control characters, etc.) as the "phone number". * The only reason that the CONNECT command cannot be used to do this is * that a remote line cannot normally be opened unless carrier is present. * * The protocol and other characteristics of this modem are unknown, with * some "reasonable" values being chosen for some of them.  The only way to * detect if a connection is made is to look for carrier present. * * SUPPORT IS CURRENTLY ONLY PARTIALLY SKETCHED OUT FOR THIS.  ALSO, IT * SHOULD PERHAPS BE HANDLED MUCH EARLIER, SIMPLY READING USER INPUT AND * SENDING IT TO THE MODEM AND ECHOING MODEM RESPONSES BACK TO THE USER, * ALL THE TIME LOOKING FOR CARRIER.  OF COURSE, THE PROBLEM THEN BECOMES * ONE OF ALLOWING THE USER TO ABORT THE DIALING.  WE COULD CHOOSE SOME * PHRASE THAT WOULD PRESUMABLY NEVER BE A PART OF A VALID AUTODIAL SEQUENCE * (E.G., "QUIT" and "quit"). -- DS */#include "ckcdeb.h"#include <stdio.h>#include <ctype.h>#include <signal.h>#include <setjmp.h>#include "ckcker.h"#include "ckucmd.h"extern int flow, local, mdmtyp, quiet, speed;extern char ttname[], sesfil[];#define	MDMINF	struct mdminfMDMINF		/* structure for modem-specific information */    {    int		dial_time;	/* time modem allows for dialing (secs) */    char	*pause_chars;	/* character(s) to tell modem to pause */    int		pause_time;	/* time associated with pause chars (secs) */    char	*wake_str;	/* string to wakeup modem & put in cmd mode */    int		wake_rate;	/* delay between wake_str characters (msecs) */    char	*wake_prompt;	/* string prompt after wake_str */    char	*dmode_str;	/* string to put modem in dialing mode */    char	*dmode_prompt;	/* string prompt for dialing mode */    char	*dial_str;	/* dialing string, with "%s" for number */    int		dial_rate;	/* delay between dialing characters (msecs) */    };/* * Define symbolic modem numbers. * * The numbers MUST correspond to the ordering of entries * within the ptrtab array, and start at one (1). * * It is assumed that there are relatively few of these * values, and that the high(er) bytes of the value may * be used for modem-specific mode information. * * REMEMBER that only the first eight characters of these * names are guaranteed to be unique. */#define		n_CERMETEK	 1#define		n_DF03		 2#define		n_DF100		 3#define		n_DF200		 4#define		n_GDC		 5#define		n_HAYES		 6#define		n_PENRIL	 7#define		n_RACAL		 8#define		n_UNKNOWN	 9#define		n_USROBOT	10#define		n_VENTEL	11/* * Declare modem "variant" numbers for any of the above for which it is * necessary to note various operational modes, using the second byte * of a modem number. * * It is assumed that such modem modes share the same modem-specific * information (see MDMINF structure) but may differ in some of the actions * that are performed. */#define		n_HAYESNV	( n_HAYES + ( 1<<8 ) )/* * Declare structures containing modem-specific information. * * REMEMBER that only the first SEVEN characters of these * names are guaranteed to be unique. */staticMDMINF CERMETEK =	/* information for "Cermetek Info-Mate 212 A" modem */    {    20,			/* dial_time */    "BbPpTt",		/* pause_chars */    0,			/* pause_time */	/** unknown -- DS **/    "  XY\016R\r",	/* wake_str */    200,		/* wake_rate */    "",			/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "\016D '%s'\r",	/* dial_str */    200			/* dial_rate */    };staticMDMINF DF03 =		/* information for "DEC DF03-AC" modem */    {    27,			/* dial_time */    "=",		/* pause_chars */	/* wait for second dial tone */    15,			/* pause_time */    "\001\002",		/* wake_str */    0,			/* wake_rate */    "",			/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "%s",		/* dial_str */    0			/* dial_rate */    };staticMDMINF DF100 =		/* information for "DEC DF100-series" modem */			/*			 * The telephone "number" can include "P"s and/or "T"s			 * within it to indicate that subsequent digits are			 * to be dialed using pulse or tone dialing.  The			 * modem defaults to pulse dialing.  You may modify			 * the dial string below to explicitly default all			 * dialing to pulse or tone, but doing so prevents			 * the use of phone numbers that you may have stored			 * in the modem's memory.			 */    {    30,			/* dial_time */    "=",		/* pause_chars */	/* wait for second dial tone */    15,			/* pause_time */    "\001",		/* wake_str */    0,			/* wake_rate */    "",			/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "%s#",		/* dial_str */    0			/* dial_rate */    };staticMDMINF DF200 =		/* information for "DEC DF200-series" modem */			/*			 * The telephone "number" can include "P"s and/or "T"s			 * within it to indicate that subsequent digits are			 * to be dialed using pulse or tone dialing.  The			 * modem defaults to pulse dialing.  You may modify			 * the dial string below to explicitly default all			 * dialing to pulse or tone, but doing so prevents			 * the use of phone numbers that you may have stored			 * in the modem's memory.			 */    {    30,			/* dial_time */    "=W",		/* pause_chars */	/* =: second tone; W: 5 secs */    15,			/* pause_time */	/* worst case */    "\002",		/* wake_str */		/* allow stored number usage */    0,			/* wake_rate */    "",			/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "%s!",		/* dial_str */    0			/* dial_rate */    };staticMDMINF GDC =		/* information for "GeneralDataComm 212A/ED" modem */    {    32,			/* dial_time */    "%",		/* pause_chars */    3,			/* pause_time */    "\r\r",		/* wake_str */    500,		/* wake_rate */    "$",		/* wake_prompt */    "D\r",		/* dmode_str */    ":",		/* dmode_prompt */    "T%s\r",		/* dial_str */    0			/* dial_rate */    };staticMDMINF HAYES =		/* information for "Hayes" modem */    {    35,			/* dial_time */    ",",		/* pause_chars */    2,			/* pause_time */    "AT\r",		/* wake_str */    0,			/* wake_rate */    "",			/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "AT DT %s\r",	/* dial_str */    0			/* dial_rate */    };staticMDMINF PENRIL =		/* information for "Penril" modem */    {    50,			/* dial_time */    "",			/* pause_chars */	/** unknown -- HF **/    0,			/* pause_time */    "\r\r",		/* wake_str */    300,		/* wake_rate */    ">",		/* wake_prompt */    "k\r",		/* dmode_str */    ":",		/* dmode_prompt */    "%s\r",		/* dial_str */    0			/* dial_rate */    };staticMDMINF RACAL =		/* information for "Racal Vadic" modem */    {    35,			/* dial_time */    "Kk",		/* pause_chars */    5,			/* pause_time */    "\005\r",		/* wake_str */    50,			/* wake_rate */    "*",		/* wake_prompt */    "D\r",		/* dmode_str */    "?",		/* dmode_prompt */    "%s\r",		/* dial_str */    0			/* dial_rate */    };staticMDMINF UNKNOWN =	/* information for "Unknown" modem */    {    30,			/* dial_time */    "",			/* pause_chars */    0,			/* pause_time */    "",			/* wake_str */    0,			/* wake_rate */    "",			/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "%s\r",		/* dial_str */    0			/* dial_rate */    };staticMDMINF USROBOT =	/* information for "US Robotics 212A" modem */    {    30,			/* dial_time */    ",",		/* pause_chars */    2,			/* pause_time */    "ATS2=01\r",	/* wake_str */    0,			/* wake_rate */    "OK\r",		/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "ATTD%s\r",		/* dial_str */    0			/* dial_rate */    };staticMDMINF VENTEL =		/* information for "Ventel" modem */    {    20,			/* dial_time */    "%",		/* pause_chars */    5,			/* pause_time */    "\r\r\r",		/* wake_str */    300,		/* wake_rate */    "$",		/* wake_prompt */    "",			/* dmode_str */    "",			/* dmode_prompt */    "<K%s'r>",		/* dial_str */    0			/* dial_rate */    };/* * Declare table for converting modem numbers to information pointers. * * The entries MUST be in ascending order by modem number, without any * "gaps" in the numbers, and starting from one (1). * * This table should NOT include entries for the "variant" modem numbers, * since it is assumed that they share the same information as the normal * value. */staticMDMINF *ptrtab[] =    {    &CERMETEK,    &DF03,    &DF100,    &DF200,    &GDC,    &HAYES,    &PENRIL,    &RACAL,    &UNKNOWN,    &USROBOT,    &VENTEL    };/* * Declare modem names and associated numbers for command parsing, * and also for doing number-to-name translation. * * The entries MUST be in alphabetical order by modem name. */struct keytab mdmtab[] =    {    "cermetek",		n_CERMETEK,	0,    "df03-ac",		n_DF03,		0,    "df100-series",	n_DF100,	0,    "df200-series",	n_DF200,	0,    "direct",		0,		0,    "gendatacomm",	n_GDC,		0,    "hayes",		n_HAYES,	0,    "penril",		n_PENRIL,	0,    "racalvadic",	n_RACAL,	0,    "unknown",		n_UNKNOWN,	0,    "usrobotics-212a",	n_USROBOT,	0,    "ventel",		n_VENTEL,	0    };int nmdm = (sizeof(mdmtab) / sizeof(struct keytab));	/* number of modems */#define DIALING 4		/* for ttpkt parameter */#define CONNECT 5#define CONNECTED 1		/* for completion status */#define FAILED	  2

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩女优电影在线观看| 乱中年女人伦av一区二区| 亚洲成人黄色影院| 国产风韵犹存在线视精品| 欧美区视频在线观看| 中文字幕一区二区三区在线播放| 美女视频免费一区| 欧美网站一区二区| 中文字幕制服丝袜成人av| 美腿丝袜亚洲色图| 欧美日韩在线播| 亚洲视频免费看| 国产a久久麻豆| 欧美精品一区二区蜜臀亚洲| 性久久久久久久久久久久| av日韩在线网站| 国产欧美日韩卡一| 国内国产精品久久| 日韩女优av电影在线观看| 天天综合网天天综合色| 在线观看区一区二| 亚洲日本在线视频观看| 丰满白嫩尤物一区二区| 久久综合久久综合九色| 免费高清成人在线| 日韩欧美色综合网站| 日本成人在线网站| 欧美一区二区三区在线看| 亚洲第一狼人社区| 欧美精品一卡二卡| 日韩精品三区四区| 日韩一本二本av| 免费人成在线不卡| 亚洲一区二区高清| 99热在这里有精品免费| 国产精品网站在线播放| 9人人澡人人爽人人精品| 国产午夜精品久久久久久免费视 | 亚洲视频免费在线| 99久久精品情趣| 亚洲麻豆国产自偷在线| 91国偷自产一区二区使用方法| 亚洲素人一区二区| 日本电影欧美片| 午夜影院在线观看欧美| 欧美群妇大交群的观看方式| 日韩电影在线看| 精品国产亚洲一区二区三区在线观看| 精品一区精品二区高清| 国产亚洲成年网址在线观看| 成人黄色软件下载| 洋洋av久久久久久久一区| 在线成人高清不卡| 激情五月婷婷综合网| 欧美videos大乳护士334| 国产精品夜夜爽| 中文字幕佐山爱一区二区免费| 欧美三级韩国三级日本一级| 全国精品久久少妇| 久久久精品tv| 蜜桃视频一区二区三区在线观看| 日本在线不卡一区| 欧美一区二区三区四区五区| 国产精品自产自拍| 最近中文字幕一区二区三区| 欧美精品日韩精品| 国产精品综合视频| 亚洲在线视频一区| 日韩欧美在线不卡| 99精品在线免费| 麻豆精品久久久| 亚洲欧美日韩久久精品| 欧美电视剧免费观看| 色综合天天综合网天天狠天天| 强制捆绑调教一区二区| 国产精品欧美一级免费| 91精品国产91综合久久蜜臀| www.亚洲色图.com| 另类成人小视频在线| 亚洲精品乱码久久久久久| 亚洲精品一区在线观看| 91极品视觉盛宴| 粉嫩av一区二区三区在线播放| 亚洲成人免费观看| 亚洲国产精品黑人久久久| 欧美一级片免费看| 欧美在线观看视频一区二区三区| 国产精品一区三区| 老色鬼精品视频在线观看播放| 亚洲欧美视频在线观看视频| 久久久久国产精品麻豆| 欧美一二区视频| 欧美亚洲综合久久| www.亚洲免费av| 国产美女av一区二区三区| 性久久久久久久| 亚洲国产日韩精品| 亚洲女爱视频在线| 中文字幕的久久| 久久色.com| 精品久久国产97色综合| 69堂精品视频| 欧美日韩1234| 欧美在线播放高清精品| 99国产精品一区| 成人丝袜18视频在线观看| 国产在线视频一区二区| 久久aⅴ国产欧美74aaa| 日韩精品一级中文字幕精品视频免费观看 | 蜜臀va亚洲va欧美va天堂| 亚洲一区成人在线| 亚洲男同1069视频| 亚洲免费观看高清完整版在线| 中文字幕在线免费不卡| 国产婷婷色一区二区三区| 国产亚洲婷婷免费| 中文字幕免费不卡| 中文字幕在线观看不卡视频| 国产精品你懂的在线欣赏| 国产欧美一区二区三区网站| 久久先锋影音av鲁色资源| 久久综合精品国产一区二区三区 | 蜜桃视频在线观看一区| 日本大胆欧美人术艺术动态 | 欧美成人一区二区三区在线观看| 在线播放中文字幕一区| 717成人午夜免费福利电影| 91精品欧美久久久久久动漫| 91精品国产麻豆国产自产在线| 欧美一区二区三区成人| 久久综合一区二区| 国产精品网曝门| 伊人夜夜躁av伊人久久| 手机精品视频在线观看| 久久成人av少妇免费| 国产乱码精品一区二区三| 99精品视频在线观看| 欧美日韩不卡一区| 国产亚洲欧美激情| 亚洲美女屁股眼交| 奇米888四色在线精品| 国产一区在线精品| 99视频热这里只有精品免费| 欧美专区在线观看一区| 日韩免费高清视频| 中文字幕制服丝袜一区二区三区 | 国产欧美日韩视频一区二区| 亚洲视频在线一区二区| 日韩**一区毛片| 国产伦精品一区二区三区免费 | 韩国av一区二区| 91免费观看在线| 欧美年轻男男videosbes| 久久精品亚洲精品国产欧美| 亚洲激情自拍视频| 激情综合色播激情啊| 色婷婷综合激情| 精品成人佐山爱一区二区| 亚洲乱码日产精品bd| 老司机精品视频线观看86 | 一区二区在线观看av| 久久99久久99精品免视看婷婷| 99久久免费精品| 精品国产乱码久久久久久免费| 亚洲精品日日夜夜| 大桥未久av一区二区三区中文| 欧美三级三级三级爽爽爽| 国产欧美一区二区三区在线看蜜臀 | 91捆绑美女网站| 精品三级在线看| 亚洲国产精品久久艾草纯爱| 床上的激情91.| 精品捆绑美女sm三区| 亚洲高清中文字幕| 91在线porny国产在线看| 久久久www成人免费无遮挡大片 | 精品一区二区三区久久| 欧美羞羞免费网站| 中文字幕一区二区三区四区| 蜜臀av一区二区三区| 欧美综合亚洲图片综合区| 中文字幕在线一区二区三区| 国产精品综合久久| 欧美精品一区二区三区久久久| 日韩高清电影一区| 欧美性感一区二区三区| 国产精品久99| 成人精品视频一区| 国产免费观看久久| 国产精品一区在线观看你懂的| 欧美一二三区在线| 男人的j进女人的j一区| 欧美久久久一区| 五月激情丁香一区二区三区| 欧美视频日韩视频| 亚洲国产精品一区二区www在线| 99re66热这里只有精品3直播 | 日韩免费成人网| 日韩国产成人精品| 3751色影院一区二区三区|