recvfrom(uint8_t sn, uint8_t * buf, uint16_t len, uint8_t * addr, uint16_t *port)参数分别是什么
时间: 2023-10-21 14:27:07 浏览: 94
recvfrom(uint8_t sn, uint8_t *buf, uint16_t len, uint8_t *addr, uint16_t *port)函数的参数分别为:
- sn: 一个uint8_t类型的参数,表示套接字号
- buf: 一个指向uint8_t的指针,用于存储接收到的数据
- len: 一个uint16_t类型的参数,表示buf的长度
- addr: 一个指向uint8_t的指针,用于存储发送方的IP地址
- port: 一个指向uint16_t的指针,用于存储发送方的端口号 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [特殊的数据类型socklen_t、uint32_t、pthread_t、uint32_t、 pthread_t、pid_t、size_t](https://blog.csdn.net/qq_46017342/article/details/129978372)[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%"]
- *3* [Linux_基于UDP的网络套接字编程](https://blog.csdn.net/qq_41245381/article/details/104249790)[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 ]
阅读全文