經安全檢測,此網站為安全網站,請放心前往原始網址!

c++ - Do I have to bind an UDP socket in my client program, to receive data? (I always get WASEINVAL

With UDP, you have to bind() the socket in the client because UDP is connectionless, so there is no other way for the stack to know which program to deliver datagrams to for a particular port. If you could recvfrom() without bind(), you'd essentially be a

stackoverflow.com

網址安全性掃描由 google 提供