lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] UDP socket for writing only.


From: Aleksander Wysocki
Subject: [lwip-users] Re: [lwip] UDP socket for writing only.
Date: Wed, 08 Jan 2003 23:07:32 -0000

>    I open an UDP socket then connect it using "connect" function - give
the
> lwIP information about server's address. And after all of that I use only
> "send" function to send information I need.
>    Now imagine that there are incoming datagrams addressed to this socket.
> My program doesn't get them because it doesn't call "recv" function. As I
> understand after some period of time incoming datagrams take all free
pbufs
> for the incoming datagrams and other sockets will not be able to receive
> data.
>    Is there any mechanism in the lwIP to avoid these situations?
>    What is wrong in this entire scenario?

if you do not call recv(), incoming datagrams will be just discarded.
(maybe some amount (for example one - it depends of the implementation)
will be hold in hope you will recv them, but for sure they will not eat up
your memory)

it is udp - if you want to receive you must "listen" for them.
in general - if client isn't able to receive udp datagram it is discarded.

O.


[This message was sent through the lwip discussion list.]




reply via email to

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