📄 tcpostate.c,v
字号:
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@/* tcpostate.c - tcpostate */#include <conf.h>#include <kernel.h>#include <network.h>/*------------------------------------------------------------------------ * tcpostate - do TCP output state processing after an ACK *------------------------------------------------------------------------ */int tcpostate(ptcb, acked)struct tcb *ptcb;int acked;{ if (acked <= 0) return OK; /* no state change */ if (ptcb->tcb_ostate == TCPO_REXMT) { ptcb->tcb_rexmtcount = 0; ptcb->tcb_ostate = TCPO_XMIT; } if (ptcb->tcb_sbcount == 0) { ptcb->tcb_ostate = TCPO_IDLE; return OK; } tcpkick(ptcb); return OK;}@1.1log@Initial revision@text@a14 2 int tcbnum = ptcb - &tcbtab[0];@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -