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

📄 tcphowmuch.c

📁 关于TCP方面的
💻 C
字号:
/* tcphowmuch.c.c - tcphowmuch */#include <conf.h>#include <kernel.h>#include <network.h>/*------------------------------------------------------------------------ *  tcphowmuch.c - compute how much data is available to send *------------------------------------------------------------------------ */inttcphowmuch(struct tcb *ptcb){	int	tosend;	tosend = ptcb->tcb_suna + ptcb->tcb_sbcount - ptcb->tcb_snext;	if (ptcb->tcb_code & TCPF_SYN)		++tosend;	if (ptcb->tcb_flags & TCBF_SNDFIN)		++tosend;	return tosend;}

⌨️ 快捷键说明

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