lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] UDP handler on any port


From: Fabian Cenedese
Subject: [lwip-users] UDP handler on any port
Date: Thu, 31 Jan 2013 12:40:38 +0100

Hi

Is it possible to create a UDP handler that is listening on
all ports? There's INADDR_ANY for all IP addresses but I
didn't find a similar definition or an example for catching
frames on all ports.

I want to create a general server that should only use one
thread to handle all incoming frames. My preferred solution
would be to get all frames and then the server will see what
to do with them. If this is not possible then the server would
need to create pcb's for every needed connection with
probably all using the same callback.

it may be possible by using lwip raw functions but I try to
stay with the widely known socket interface as much as
possible. However I didn't see that this is defined/allowed/
possible at all. So I guess that I need to create sockets
for every port that I want to handle.

Any insights or other solutions?

Thanks

bye  Fabi




reply via email to

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