summaryrefslogtreecommitdiffstatshomepage
path: root/unix/qstrdefsport.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-07-12 13:51:55 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-07-12 13:53:35 +0300
commit3b83aeb4038d62fc50511584516f4a1709bfdc8a (patch)
tree9a3be144238945b14ac309954a081d0169c7f3ba /unix/qstrdefsport.h
parent115afdb07d10ed9f8c1f886f880a11a77243d2ba (diff)
downloadmicropython-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 'unix/qstrdefsport.h')
-rw-r--r--unix/qstrdefsport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/qstrdefsport.h b/unix/qstrdefsport.h
index 12f4f26bf6..455e1e501c 100644
--- a/unix/qstrdefsport.h
+++ b/unix/qstrdefsport.h
@@ -70,6 +70,7 @@ Q(bind)
Q(listen)
Q(accept)
Q(recv)
+Q(sendto)
Q(setsockopt)
Q(setblocking)