gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r4204 - GNUnet/src/transports


From: durner
Subject: [GNUnet-SVN] r4204 - GNUnet/src/transports
Date: Fri, 5 Jan 2007 14:10:00 -0800 (PST)

Author: durner
Date: 2007-01-05 14:09:57 -0800 (Fri, 05 Jan 2007)
New Revision: 4204

Modified:
   GNUnet/src/transports/tcp.c
   GNUnet/src/transports/udp.c
Log:
add msg

Modified: GNUnet/src/transports/tcp.c
===================================================================
--- GNUnet/src/transports/tcp.c 2007-01-05 21:23:47 UTC (rev 4203)
+++ GNUnet/src/transports/tcp.c 2007-01-05 22:09:57 UTC (rev 4204)
@@ -550,8 +550,18 @@
   if (GC_get_configuration_value_yesno(cfg,
                                       "TCP",
                                       "UPNP",
-                                      YES) == YES)
+                                      YES) == YES) {
     upnp = coreAPI->requestService("upnp");
+    
+    if (upnp == NULL)
+    {
+                       GE_LOG(ectx,
+                       GE_ERROR | GE_USER | GE_IMMEDIATE,
+                       "The UPnP service could not be loaded. To disable UPnP, 
set the " \
+                       "configuration option \"UPNP\" in section \"TCP\" to 
\"NO\"\n");        
+
+    }
+       }
   stats = coreAPI->requestService("stats");
   if (stats != NULL) {
     stat_bytesReceived

Modified: GNUnet/src/transports/udp.c
===================================================================
--- GNUnet/src/transports/udp.c 2007-01-05 21:23:47 UTC (rev 4203)
+++ GNUnet/src/transports/udp.c 2007-01-05 22:09:57 UTC (rev 4204)
@@ -537,8 +537,15 @@
   if (GC_get_configuration_value_yesno(cfg,
                                       "UDP",
                                       "UPNP",
-                                      YES) == YES)
+                                      YES) == YES) {
     upnp = coreAPI->requestService("upnp");
+    
+    if (upnp == NULL)
+                       GE_LOG(ectx,
+                       GE_ERROR | GE_USER | GE_IMMEDIATE,
+                       "The UPnP service could not be loaded. To disable UPnP, 
set the " \
+                       "configuration option \"UPNP\" in section \"UDP\" to 
\"NO\"\n");        
+       }
   stats = coreAPI->requestService("stats");
   if (stats != NULL) {
     stat_bytesReceived





reply via email to

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