📄 tcphowmuch.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 + -