[riot-notifications] [RIOT-OS/RIOT] posix_sockets.c: fix send() for connected UDP sockets (#11364)

obgm notifications at github.com
Wed Apr 10 11:22:43 CEST 2019

obgm commented on this pull request.

> @@ -959,7 +959,13 @@ static ssize_t socket_sendto(socket_t *s, const void *buffer, size_t length,
         case SOCK_DGRAM:
-            if ((res = sock_udp_send(&s->sock->udp, buffer, length, &ep)) < 0) {
+            if (address == NULL) {
+                res = sock_udp_get_remote((sock_udp_t *)s->sock, &ep);

The cast is now fixed.

I did not see a point in supporting connected raw sockets so far. Where would you like the wrapper function to live?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190410/b91032ae/attachment.html>

More information about the notifications mailing list