[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16888 - gnunet/src/vpn
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16888 - gnunet/src/vpn |
Date: |
Fri, 16 Sep 2011 17:24:21 +0200 |
Author: grothoff
Date: 2011-09-16 17:24:21 +0200 (Fri, 16 Sep 2011)
New Revision: 16888
Modified:
gnunet/src/vpn/gnunet-daemon-exit.c
Log:
c3133
Modified: gnunet/src/vpn/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-exit.c 2011-09-16 15:23:32 UTC (rev 16887)
+++ gnunet/src/vpn/gnunet-daemon-exit.c 2011-09-16 15:24:21 UTC (rev 16888)
@@ -1397,6 +1397,7 @@
mesh_handle = GNUNET_MESH_connect (cfg, NULL, NULL, handlers, apptypes);
}
+
/**
* @brief Main function that will be run by the scheduler.
*
@@ -1422,19 +1423,22 @@
udp_services = GNUNET_CONTAINER_multihashmap_create (65536);
tcp_services = GNUNET_CONTAINER_multihashmap_create (65536);
- GNUNET_CONFIGURATION_get_value_number (cfg, "exit", "MAX_UDP_CONNECTIONS",
- &max_udp_connections);
- GNUNET_CONFIGURATION_get_value_number (cfg, "exit", "MAX_TCP_CONNECTIONS",
- &max_tcp_connections);
-
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_number (cfg, "exit",
"MAX_UDP_CONNECTIONS",
+ &max_udp_connections))
+ max_udp_connections = 1024;
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_number (cfg, "exit",
"MAX_TCP_CONNECTIONS",
+ &max_tcp_connections))
+ max_tcp_connections = 256;
GNUNET_CONFIGURATION_iterate_sections (cfg, read_service_conf, NULL);
-
GNUNET_SCHEDULER_add_now (start_helper_and_schedule, NULL);
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup, cls);
}
+
/**
- * The main function to obtain template from gnunetd.
+ * The main function
*
* @param argc number of arguments from the command line
* @param argv command line arguments
@@ -1448,8 +1452,10 @@
};
return (GNUNET_OK ==
- GNUNET_PROGRAM_run (argc, argv, "exit", gettext_noop ("help text"),
+ GNUNET_PROGRAM_run (argc, argv, "gnunet-daemon-exit",
+ gettext_noop ("Daemon to run to provide an IP
exit node for the VPN"),
options, &run, NULL)) ? ret : 1;
}
+
/* end of gnunet-daemon-exit.c */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16888 - gnunet/src/vpn,
gnunet <=