摘要:
对于面向连接的socket,需要会用监听连接的到来,并且使用backlog参数来限制连接数量;具体backlog限制的内容,请参考本博另外一篇文章,本文结尾提供链接地址; 1 /* 2 * Perform a listen. Basically, we allow the protocol to d 阅读全文
posted @ 2017-10-02 02:05
AlexAlex
阅读(954)
评论(0)
推荐(0)
摘要:
在socket创建成功之后,调用bind函数以完成对指定地址和端口的绑定工作; 下面详细分析bind相关代码; 1 /* 2 * Bind a name to a socket. Nothing much to do here since it's 3 * the protocol's respon 阅读全文
posted @ 2017-10-02 01:26
AlexAlex
阅读(1233)
评论(0)
推荐(0)

浙公网安备 33010602011771号