网络编程 bind()
时间: 2023-10-12 08:08:19 浏览: 80
网络编程中的bind()函数用于将一个本地协议地址赋予一个套接字。对于网际协议,协议地址是32位的IPv4地址或是128位的IPv6地址与16位的TCP或UDP端口号的组合。 该函数的原型为int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)。 在使用bind()函数时需要注意一些问题,具体可以参考相关教程。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Linux网络编程:绑定( bind )需要注意的问题](https://download.csdn.net/download/tennysonsky/8472395)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [网络编程之bind函数](https://blog.csdn.net/m0_67402096/article/details/124487878)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文