QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1048|回复: 3

两个队列的问题

[复制链接]
发表于 2003-5-30 09:51:37 | 显示全部楼层 |阅读模式
两个队列的问题
1.当TCP三次握手完成时,连接从未完成队列到已完成联接队列
这是有什么函数来做的?然后负责通知client的也是这个时候做的吧?哪个函数阿?
2.accept函数只是负责从accept-queue取出联接吧?


谢谢
发表于 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.
回复

使用道具 举报

 楼主| 发表于 2003-5-30 10:55:49 | 显示全部楼层
谢谢版主
感激不尽~~~~
回复

使用道具 举报

发表于 2003-5-30 11:10:56 | 显示全部楼层
welcome. i find that just now as well.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-6-29 13:31 , Processed in 0.041685 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表