socket.setsockopt(zmq.RCVTIMEO, -1)
时间: 2024-05-16 09:19:03 浏览: 220
setsockopt()设置socket方法
socket.setsockopt(zmq.RCVTIMEO, -1)是一种使用ZeroMQ库的方法来设置接收超时时间,其中zmq.RCVTIMEO表示设置接收超时选项的常量值。通过将该选项设置为-1,可以将接收超时时间设置为无限,即永不超时。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ZMQ设置setsockopt选项](https://blog.csdn.net/auspark/article/details/103070320)[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* [ZeroMQ接口函数之 :zmq_setsockopt –设置ZMQ socket的属性](https://blog.csdn.net/u012206617/article/details/90931044)[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 ]
阅读全文