要分配Internet协议控制块,可调用 in_pcballoc()。
To allocate an Internet protocol control block, in_pcballoc() is called.
这种方法所带来的缺点是,处理以更高的速率扫描所有协议控制块 (PCB) 的开销。
The drawback with this approach is handling the overhead of scanning all the protocol control blocks (PCBs) a higher rate.
运行netstat -Aan,其中的-a显示与套接字相关联的任何协议控制块的地址。
Run netstat -aan, where -a shows the address of any protocol control blocks associated with the sockets.
tcp_usrreq函数中的切换调用 in_setpeeraddr(),后者从协议控制块复制外来IP地址和外来端口号,并将其返回到服务器进程。
The switch in the tcp_usrreq function calls in_setpeeraddr(), which copies the foreign IP address and foreign port number from the protocol control block and returns these to the server process.
tcp_usrreq函数中的切换调用 in_setpeeraddr(),后者从协议控制块复制外来IP地址和外来端口号,并将其返回到服务器进程。
The switch in the tcp_usrreq function calls in_setpeeraddr(), which copies the foreign IP address and foreign port number from the protocol control block and returns these to the server process.
应用推荐