yayawei 发表于 2003-5-30 09:51:37

两个队列的问题

两个队列的问题
1.当TCP三次握手完成时,连接从未完成队列到已完成联接队列
这是有什么函数来做的?然后负责通知client的也是这个时候做的吧?哪个函数阿?
2.accept函数只是负责从accept-queue取出联接吧?


谢谢

Dragonfly 发表于 2003-5-30 10:51:24

check the tcp_check_req() in tcp_minisocks.c. i believe this fun handle the incoming one, it change the accept_queue. it is called by *tcp_v4_hnd_req(struct sock *sk,struct sk_buff *skb) in tcp_ipv4.c, which also call tcp_v4_search_req().

accept will check if already have connection in queue (accept_queue), if so handle it, if not , then call wait_connect.

yayawei 发表于 2003-5-30 10:55:49

谢谢版主
感激不尽~~~~

Dragonfly 发表于 2003-5-30 11:10:56

welcome. i find that just now as well.
页: [1]
查看完整版本: 两个队列的问题