tcphowmuch.c,v
来自「关于TCP方面的」· C,V 代码 · 共 60 行
C,V
60 行
head 1.2;access;symbols;locks dls:1.2; strict;comment @ * @;1.2date 97.09.21.19.29.52; author dls; state Dist;branches;next 1.1;1.1date 94.01.14.03.51.20; author dls; state v2e1;branches;next ;desc@@1.2log@pre-3e code@text@/* tcphowmuch.c.c - tcphowmuch */#include <conf.h>#include <kernel.h>#include <network.h>/*------------------------------------------------------------------------ * tcphowmuch.c - compute how much data is available to send *------------------------------------------------------------------------ */int tcphowmuch(ptcb)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;}@1.1log@Initial revision@text@@
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?