lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #21656] recvmbox problem in netconn API (netconn_recv


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #21656] recvmbox problem in netconn API (netconn_recv and others)
Date: Sun, 02 Dec 2007 18:27:33 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Follow-up Comment #7, bug #21656 (project lwip):

> I just have a "problem" with the function name 
> "netconn_alloc_with_proto_and_callback"/. Most (all?) functions 
> prefixed by netconn_ were in api.h/api_lib.c, and functions 
> prefixed by do_ were in api_msg.h/.c. Why this one is a 
> exception? do_allocconn could be a better name ?

I though about that name, too. But I was thinking of a rather different
solution: All the do_* functions were functions in the function table (up to
the last release version...) and should now be functions that take a strut
api_msg_msg as argument. I think the other functions (do_gethostbyname and
netconn_alloc_with_proto_and_callback) should have a prefix that doesn't make
you think they also take a struct api_msg_msg as and argument.

So while I also think netconn_alloc_with_proto_and_callback is not a good
name, a do_ prefix isn't the best solution...

Maybe api_gethostbyname and api_allocnetconn (plus api_drainconn) so that we
have api_ as a prefix for the non-api_msg_msg functions?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?21656>

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





reply via email to

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