[riot-users] Problem with udp sock api
oliver.koepp at yahoo.de
Thu Jul 18 15:25:02 CEST 2019
I'm trying to understand, how the UDP sock API  works, but the
documentation /example are very bad / useless.
My questions are:
How can I create an UDP server which listen on a specific port and has
an unique IPv6 addr ?? The example  isn't very helpful. I don't
understand why some variables like "local"  are defined. The
documentation does not help. The documentation says "Common IP-based
transport layer end point." for the struct sock_udp_ep_t. But why do I
need this?? I want to receive and send udp packages to other boards. Why
is this so difficult to implement ??
How can I send an udp package with the following parameters given:
- dst ipv6 addr
The documentation / example does not help here either.
How can I get the unique Ipv6 addr from my device (samr21-xpro). I want
to call "getIPv6()" and want the Ipv6 addr which this device has.
 sock_udp_ep_t local = SOCK_IPV6_EP_ANY;
More information about the users