will_notsup.c

来自「tcp/ip原理的第三卷」· C语言 代码 · 共 24 行

C
24
字号
/* will_notsup.c - will_notsup */

#include <sys/types.h>

#include <stdio.h>

#include "telnet.h"

/*------------------------------------------------------------------------
 * will_notsup - handle an unsupported TELNET DO/DON'T option
 *------------------------------------------------------------------------
 */
/*ARGSUSED*/
int
will_notsup(rfp, tfp, c)
FILE	*rfp, *tfp;
int	c;
{
	(void) putc(TCIAC, rfp);
	(void) putc(TCWONT, rfp);
	(void) putc((char)c, rfp);
	return 0;
}

⌨️ 快捷键说明

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