socket recv send
时间: 2023-09-05 22:12:19 浏览: 105
在进行TCP协议传输时,使用socket进行数据的接收和发送是很常见的操作。对于接收数据,可以使用recv函数来接收。但需要注意的是,recv函数并不一定与send函数一一对应。也就是说,不是send一次就一定recv一次就接收完。可能需要多次recv才能接收完一次send的数据,也可能一次recv就能接收完多次send的数据。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [socket编程中的recv函数和send函数](https://blog.csdn.net/modi000/article/details/105580382)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [深入理解socket中的recv函数和send函数](https://blog.csdn.net/qq_36915078/article/details/107728888)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文