lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Extended udp_recv callback


From: Kieran Mansley
Subject: Re: [lwip-devel] Extended udp_recv callback
Date: Wed, 14 Jan 2009 08:58:41 +0000

On Tue, 2009-01-13 at 18:16 +0100, Jakob Stoklund Olesen wrote:

> The mDNSResponder code for Posix, Mac OS X, and VxWorks uses the
> recvmsg() syscall and struct cmsghdr. I am not familiar with this API,
> it looks quite complicated. See recvmsg(2) and cmsg(3).
> 
> The Windows code is similar, except you put WSA_ in front of everything.
> 
> I don't think we can do something like this for lwIP and still be
> lightweight.

We wouldn't be able to do the full version of that, no, but we might be
able to do a reduced set, or something similar.  I think it's worthy of
further investigation, even if only to make the extended API that is
being discussed a bit more like the recvmsg and cmsg API.

> I have not implemented this, and I don't really need it. But perhaps the
> extended callback should get the entire IP header instead?

That's one possibility.

Kieran





reply via email to

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