diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-07-12 13:51:55 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-07-12 13:53:35 +0300 |
commit | 3b83aeb4038d62fc50511584516f4a1709bfdc8a (patch) | |
tree | 9a3be144238945b14ac309954a081d0169c7f3ba /py/objexcept.c | |
parent | 115afdb07d10ed9f8c1f886f880a11a77243d2ba (diff) | |
download | micropython-3b83aeb4038d62fc50511584516f4a1709bfdc8a.tar.gz micropython-3b83aeb4038d62fc50511584516f4a1709bfdc8a.zip |
unix: modsocket: Implement sendto().
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.
Diffstat (limited to 'py/objexcept.c')
0 files changed, 0 insertions, 0 deletions