gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r28209 - libmicrohttpd/src/examples


From: gnunet
Subject: [GNUnet-SVN] r28209 - libmicrohttpd/src/examples
Date: Sat, 20 Jul 2013 12:13:35 +0200

Author: grothoff
Date: 2013-07-20 12:13:35 +0200 (Sat, 20 Jul 2013)
New Revision: 28209

Modified:
   libmicrohttpd/src/examples/dual_stack_example.c
Log:
-moving dual stack example to modern variant

Modified: libmicrohttpd/src/examples/dual_stack_example.c
===================================================================
--- libmicrohttpd/src/examples/dual_stack_example.c     2013-07-20 10:03:53 UTC 
(rev 28208)
+++ libmicrohttpd/src/examples/dual_stack_example.c     2013-07-20 10:13:35 UTC 
(rev 28209)
@@ -57,29 +57,23 @@
   return ret;
 }
 
+
 int
 main (int argc, char *const *argv)
 {
-  struct MHD_Daemon *d4;
-  struct MHD_Daemon *d6;
+  struct MHD_Daemon *d;
 
   if (argc != 2)
     {
       printf ("%s PORT\n", argv[0]);
       return 1;
     }
-  d4 = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG,
-                        atoi (argv[1]),
-                        NULL, NULL, &ahc_echo, PAGE,
-                        MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
-                        MHD_OPTION_END);
-  d6 = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG | 
MHD_USE_IPv6,
-                        atoi (argv[1]),
-                        NULL, NULL, &ahc_echo, PAGE,
+  d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG | 
MHD_USE_DUAL_STACK,
+                       atoi (argv[1]),
+                       NULL, NULL, &ahc_echo, PAGE,
                        MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
                        MHD_OPTION_END);
   (void) getc (stdin);
-  MHD_stop_daemon (d4);
-  MHD_stop_daemon (d6);
+  MHD_stop_daemon (d);
   return 0;
 }




reply via email to

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