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: Jonathan Larmour
Subject: Re: [lwip-devel] Extended udp_recv callback
Date: Tue, 13 Jan 2009 16:39:24 +0000
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Kieran Mansley wrote:
> 
> I think a combination of the two approaches might be best:
>  - add an extra callback to the API, something like pcb->recv_ext() with
> an associated means of setting a handler for this callback. 
>  - have a pcb->flag that selects whether to use the normal recv callback
> or the extended recv callback.
>  - have a compile time EXTENDED_RECV_CALLBACK definition that can be
> used to compile the extended recv callback feature out if others don't
> want it.
> 
> That way existing code doesn't need to be modified as the old callback
> remains the same.

Just to be clear, my suggestion meant that existing code doesn't have to
change either. But doesn't have the pcb overhead of an extra function
pointer+argument in the UDP PCB.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

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