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

📄 tbyte.c

📁 支持ZModem, Telnet功能的串口通讯程序
💻 C
字号:
/* * This function deals with bytes from the telnet end of the connection. * These are scanned for IAC messages and the IAC function called if so, * else the byte is passed into the output queue. */#include "virtmodem.h"#include "blocks.h"extern struct block_list local;voidtelnet_byte(unsigned char c){    static int iac= -1;    static unsigned char ibytes[3];    switch(iac) {    case 0:	if(c==255) {	    add_char(&local,c);	    iac= -1;	} else {	    ibytes[1]=c;	    iac=1;	}	break;    case 1:	ibytes[2]=c;	do_iac(ibytes);	iac= -1;	break;    default:	if(c==255)	    iac=0;	else	    add_char(&local,c);    }}

⌨️ 快捷键说明

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