Skip to content

Commit

Permalink
Issue 25
Browse files Browse the repository at this point in the history
  • Loading branch information
selfboot committed May 28, 2017
1 parent b39230d commit 24ac1f7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Network/Socket.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ socket函数的三个参数分别为:
两个参数分别为:

* sockfd: socket描述字。
* backlog: 指定同时能处理的最大连接要求,通常为10或者5。最大值可设至128。
* backlog: ~~指定同时能处理的最大连接要求,通常为10或者5。最大值可设至128~~。参见 [Socket_Listen](Socket_Listen.md) 的详细说明

`accept函数`:接受远程计算机的连接请求,建立起与客户机之间的通信连接。服务器处于监听状态时,如果某时刻获得客户机的连接请求,此时并不是立即处理这个请求,而是将这个请求放在等待队列中,当系统空闲时再处理客户机的连接请求。

Expand Down
16 changes: 16 additions & 0 deletions Network/Socket_Listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@





# 参考

[How TCP backlog works in Linux](http://veithen.github.io/2014/01/01/how-tcp-backlog-works-in-linux.html)
[What is “backlog” in TCP connections?](https://stackoverflow.com/questions/36594400/what-is-backlog-in-tcp-connections)
[浅谈tcp socket的backlog参数](http://www.jianshu.com/p/e6f2036621f4)
[关于TCP 半连接队列和全连接队列](http://jm.taobao.org/2017/05/25/525-1/)
[深入探索 Linux listen() 函数 backlog 的含义](http://blog.csdn.net/yangbodong22011/article/details/60399728)
[connect & send 在三次握手过程中的有趣问题](http://blog.csdn.net/yangbodong22011/article/details/69802544)
[Linux nc command](https://www.computerhope.com/unix/nc.htm)


0 comments on commit 24ac1f7

Please sign in to comment.