Browse Source
sendto() turns out to be mandatory function to work with UDP. It may seem that connect(addr) + send() would achieve the same effect, but what connect() appears to do is to set source address filter on a socket to its argument. Then everything falls apart: socket sends to a broad-/multi-cast address, but reply is sent from real peer address, which doesn't match filter set by connect(), so local socket never sees a reply.pull/1376/merge
Paul Sokolovsky
9 years ago
2 changed files with 23 additions and 0 deletions
Loading…
Reference in new issue