pythonrecvfrom阻塞
发布时间: 2023-03-02 06:41:47
Ⅰ python设计UDP通信时,recvfrom()中的参数是什么意思
socket.recvfrom(bufsize[, flags])
Receive data from the socket. The return value is a pair (bytes, address) where bytes is a bytes object
representing the data received and address is the address of the socket
sending the data. See the Unix manual page recv(2) for
the meaning of the optional argument flags; it defaults to zero. (The
format of address depends on the address family — see above.)
recvfrom(1)就是从缓冲区读一个字节的数据
热点内容