?? udpnxtp.c,v
字號:
head 1.1;access;symbols;locks dls:1.1; strict;comment @ * @;1.1date 97.09.21.19.30.32; author dls; state Dist;branches;next ;desc@@1.1log@pre-3e code@text@/* udpnxtp.c - udpnxtp */#include <conf.h>#include <kernel.h>#include <network.h>/*------------------------------------------------------------------------ * udpnxtp - return the next available UDP local "port" number * N.B.: assumes udpmutex HELD *------------------------------------------------------------------------ */unsigned short udpnxtp(){ static unsigned short lastport = ULPORT; Bool inuse = TRUE; struct upq *pup; int i; while (inuse) { lastport++; if (lastport == 0) lastport = ULPORT; inuse = FALSE; for (i=0; !inuse && i<UPPS ; i++) { pup = &upqs[i]; inuse = pup->up_valid && pup->up_port == lastport; } } return lastport;}@
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -