开发者

recvfrom() returns 0 after sendto() call on the blocking udp socket

开发者 https://www.devze.com 2023-03-31 18:56 出处:网络
When I call recvfrom() on the blocking udp socket after sendto() call it returns 0. But when I call Sleep() function between them, recvfrom() returns the correct lenghth of the received udp packet.

When I call recvfrom() on the blocking udp socket after sendto() call it returns 0.

But when I call Sleep() function between them, recvfrom() returns the correct lenghth of the received udp packet.

Th开发者_如何学Ce same correct behaviour is present when I use the debugger in step over mode.

Can some clarify this behavior of the udp socket?

0

精彩评论

暂无评论...
验证码 换一张
取 消