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

📄 soputc.c

📁 comer s TCPIP-vol3源代码...当然是经典咯
💻 C
字号:
/* soputc.c - soputc */#include <sys/types.h>#include <stdio.h>#include "telnet.h"#include "local.h"/*------------------------------------------------------------------------ * soputc - move a character from the keyboard to the socket *------------------------------------------------------------------------ */intsoputc(FILE *sfp, FILE *tfp, int c){	if (sndbinary) {		if (c == TCIAC)			(void) putc(TCIAC, sfp); /* byte-stuff IAC	*/		(void) putc(c, sfp);		return 0;	}	c &= 0x7f;	/* 7-bit ASCII only */	if (c == t_intrc || c == t_quitc) {	/* Interrupt		*/		(void) putc(TCIAC, sfp);		(void) putc(TCIP, sfp);	} else if (c == sg_erase) {		/* Erase Char		*/		(void) putc(TCIAC, sfp);		(void) putc(TCEC, sfp);	} else if (c == sg_kill) {		/* Erase Line		*/		(void) putc(TCIAC, sfp);		(void) putc(TCEL, sfp);	} else if (c == t_flushc) {		/* Abort Output		*/		(void) putc(TCIAC, sfp);		(void) putc(TCAO, sfp);	} else		(void) putc(c, sfp);	return 0;}

⌨️ 快捷键说明

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