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.