码迷,mamicode.com
首页 > 其他好文 > 详细

TCP closing a connection

时间:2015-07-02 19:35:14      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:

client closes socket:

clientSocket.close();


step1 :client sends TCP FIN control segment to server


step2: Server receives FIN,replies with ACK. Closes connection,sends FIN.


time wait 30 seconds(in order to receive the package which already send but unreceived)

技术分享

技术分享技术分享


版权声明:本文为博主原创文章,未经博主允许不得转载。

TCP closing a connection

标签:

原文地址:http://blog.csdn.net/susser43/article/details/46728799

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!