Discussion:
[libmicrohttpd] Regarding IPV4/IPV6 support
Santos Das
2018-12-04 16:40:16 UTC
Permalink
Hi,

Can MHD listen on both IPv4 and IPv6 address at the same time?

Thanks, Santos
silvioprog
2018-12-04 16:47:49 UTC
Permalink
Hi Santos.

You can do it using the flag MHD_USE_DUAL_STACK:

/**
* Use a single socket for IPv4 and IPv6.
*/
MHD_USE_DUAL_STACK = MHD_USE_IPv6 | 2048,

Cheers!
Post by Santos Das
Hi,
Can MHD listen on both IPv4 and IPv6 address at the same time?
Thanks, Santos
--
Silvio Clécio
Santos Das
2018-12-04 16:50:58 UTC
Permalink
Thank you.

Regards, Santos
Post by silvioprog
Hi Santos.
/**
* Use a single socket for IPv4 and IPv6.
*/
MHD_USE_DUAL_STACK = MHD_USE_IPv6 | 2048,
Cheers!
Post by Santos Das
Hi,
Can MHD listen on both IPv4 and IPv6 address at the same time?
Thanks, Santos
--
Silvio Clécio
Moritz Warning
2018-12-04 16:48:58 UTC
Permalink
Yes,

look for MHD_USE_DUAL_STACK:

https://www.gnu.org/software/libmicrohttpd/manual/html_node/microhttpd_002dconst.html
Post by Santos Das
Hi,
Can MHD listen on both IPv4 and IPv6 address at the same time?
Thanks, Santos
Loading...