lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] udp_disconnect() & documentation.


From: lukem . lwip
Subject: [lwip-devel] udp_disconnect() & documentation.
Date: Wed, 10 Mar 2004 10:43:49 +1100 (EST)

It would be good to add udp_disconnect() to the raw api documentation. Had
me head scratching yesterday when some code which used to work in an old
lwIP tree no longer did.

Specifically, the code used udp_connect() to reset the remote end of the
udp pcb to IP_ADDR_ANY and port 0 so that it could receive from anyone
again. This however results in the connected flag still being set, which
causes incoming packets to be discarded anyway.

My present solution is to still call udp_connect() to clear the remote
host and port, followed by udp_disconnect() to clear the connected flag.
This should probably be changed so that udp_disconnect changes the remote
host and port as well.

--
Luke




reply via email to

[Prev in Thread] Current Thread [Next in Thread]