lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #6723] Add option UDP_EXT_RECV_CALLBACK to enable ne


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #6723] Add option UDP_EXT_RECV_CALLBACK to enable new API function udp_ext_recv()
Date: Sat, 02 May 2009 21:02:10 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10

Follow-up Comment #1, patch #6723 (project lwip):

Just a thought on that: wouldn't it be more backwards-compatible and maybe
cleaner (because of having less options) if we implemented a function that
received the additional parameters for the pcb?

We could implement that in global variables or cached in the pcbs. I know it
might not be cleaner from the application coding point of view, but it would
save some #ifs and the flag test (to get the type of input function to call).

We could implement something like

err_t udp_get_input_info(struct udp_pcb pcb, struct ip_addr* src, atruct
ip_hdr* iphdr, struct netif* inp);

to get the info, and the callback would stay the same for old and new
applications.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6723>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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