lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5778] Warning in opt.h about SO_REUSE


From: Frédéric Bernon
Subject: [lwip-devel] [patch #5778] Warning in opt.h about SO_REUSE
Date: Mon, 05 Mar 2007 09:23:20 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2

Follow-up Comment #3, patch #5778 (project lwip):

1. In fact, this patch is only to remove warning at build time. But, if
someone upgrades from an older version, there is two possibilities :

- he never define SO_REUSE, in this case, no warning at build time, and if he
execute his program, setsockopt will give a ENOPROTOOPT runtime error.

- he already set SO_REUSE to 1 in his lwipopts.h, in this case, he will get
the error message "SO_REUSE currently unavailable..." at build time. He just
have to remove SO_REUSE in his lwipiopts.h

2. I hope perhaps "someone" will fix the code (like you with APR_QUEUING).
But I even if the lwip current design is to tell "one thread at one netconn
(and thus socket) at a time", you can use SO_REUSEADDR to allow two
differents sockets to receive the same broadcast or multicast UDP "streams".

So, that's why I have propose this patch...


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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