4月 162011
 

socket_shutdown函数可以关闭一个socket的读或写,这种操作映射到tcp协议中又是什么情况呢,简单测试了一下:
1. 如果关闭读操作,则协议上没有任何动作,对方发来的数据网卡上还是接受的
2. 如果关闭写操作,则协议上表现为关闭连接,即: 发送finish报文

 Posted by at 上午 9:15

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据