[Top][All Lists]

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

Re: [libmicrohttpd] Patch to improve IPv6 support in libmicrohttpd

From: Sven Geggus
Subject: Re: [libmicrohttpd] Patch to improve IPv6 support in libmicrohttpd
Date: Mon, 16 Jan 2012 14:07:53 +0000 (UTC)
User-agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (Linux/ (x86_64))

Christian Grothoff <address@hidden> wrote:

> Now I do.  I've modified the "minimal_example.c" from src/examples/ to 
> make it dual-stack.  As you can see, the changes are trivial.

Fo me the non obivous thing for me was the fact, that it is still possible to 
a single threaded solution with two listening sockets by just calling
MHD_get_fdset on both sockets.

So what I do now is something like this:

struct MHD_Daemon *dv4;
struct MHD_Daemon *dv6;


dv6 = MHD_start_daemon(MHD_USE_IPv6,...
dv4 = MHD_start_daemon(MHD_NO,...


if (dv4!=NULL)
  if (MHD_YES != MHD_get_fdset (dv4, ...))
    break; /* fatal internal error */

if (dv6!=NULL)
  if (MHD_YES != MHD_get_fdset (dv6, ...))


"In the land of the brave and the free, we defend our freedom
with the GNU GPL" (Richard M. Stallman on

/me is address@hidden, on the Web

reply via email to

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