两个队列的问题
两个队列的问题1.当TCP三次握手完成时,连接从未完成队列到已完成联接队列
这是有什么函数来做的?然后负责通知client的也是这个时候做的吧?哪个函数阿?
2.accept函数只是负责从accept-queue取出联接吧?
谢谢 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. 谢谢版主
感激不尽~~~~ welcome. i find that just now as well.
页:
[1]