简体   繁体   中英

Am I able to send and receive data via the same UDP socket simultaneously

Am I able to send and receive data (therefore, to use sendto and recvfrom methods) via the same UDP socket simultaneously in Python?

I need to listen for new packets while sending some data to previous clients from another thread.

是的,UDP套接字是双向的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM