lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] UDP handler on any port


From: Simon Goldschmidt
Subject: Re: [lwip-users] UDP handler on any port
Date: Fri, 1 Feb 2013 06:38:02 +0100

Fabian Cenedese wrote:

> Is it possible to create a UDP handler that is listening on
> all ports?

No, at least not using some kind of UDP socket or pcb. Instead, you could use a 
raw socket which gets all ip packets for a specific IP and/or protocol. 
However, doing this with the socket API is VERY unperformant as every incoming 
packet is copied into your socket thread. Instead, you could use a raw-API raw 
pcb, which does the same, but is zero-copy. However, With a raw socket/pcb, you 
will have to do the protocol header parsing yourself...

Simon


reply via email to

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