Hi Philipp,
am I assuming correctly that you want to know on which IP address you
received
an incoming request?
An API extension for the underlying UDP SOCK API is about to get merged
[1],
that would allow just this. Still missing are implementations of that
API (but
the pull requests for those are open and likely much less controversial
than an
API extension) and an extension to gcoap to forward this info.
I assume this is something that will land sooner or later in RIOT, as
the
ability to do virtual hosting based on IP address has some interesting
use cases
(e.g. to provide some resources only on the link-local IPv6 address,
while other
resources can also be provided to a wider audience).
Kind regards,
Marian
Can you send me the PR for gcoap once it is there? I would like to watch
it. I need this for the Web of Things implementation. I have to provide
the IP address in the current version of the specification.
(https://github.com/w3c/wot-thing-description/issues/977#issuecomment-733824110)
_______________________________________________
users mailing list
users@riot-os.org
https://lists.riot-os.org/mailman/listinfo/users