Skip to content
Commit 379771e2 authored by Aska Wu's avatar Aska Wu Committed by Jukka Rissanen
Browse files

net: context: Bind default address for UDP



This patch makes net_context_sendto() work independently without calling
net_context_connect() first. It will bind default address and port if
necessary.

Also, since receive callback should be provided before sending data in
order to receive the response, bind default address and port to prevent
providing an unbound address and port to net_conn_register().

Signed-off-by: default avatarAska Wu <aska.wu@linaro.org>
parent 1a2f24f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment