[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11276 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11276 - gnunet/src/transport |
Date: |
Mon, 10 May 2010 11:16:34 +0200 |
Author: wachs
Date: 2010-05-10 11:16:34 +0200 (Mon, 10 May 2010)
New Revision: 11276
Modified:
gnunet/src/transport/plugin_transport_http.c
gnunet/src/transport/test_plugin_transport_http.c
Log:
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2010-05-10 08:59:55 UTC
(rev 11275)
+++ gnunet/src/transport/plugin_transport_http.c 2010-05-10 09:16:34 UTC
(rev 11276)
@@ -284,6 +284,25 @@
api->address_pretty_printer = &template_plugin_address_pretty_printer;
api->check_address = &template_plugin_address_suggested;
api->address_to_string = &template_plugin_address_to_string;
+
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Starting http plugin...\n");
+ /* Reading port number from config file */
+ if ((GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_number (env->cfg,
+ "transport-http",
+ "PORT",
+ &port)) ||
+ (port > 65535) )
+ {
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
+ "http",
+ _
+ ("Require valid port number for service `%s' in
configuration!\n"),
+ "transport-http");
+ libgnunet_plugin_transport_http_done (api);
+ return NULL;
+ }
+
return api;
}
Modified: gnunet/src/transport/test_plugin_transport_http.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_http.c 2010-05-10 08:59:55 UTC
(rev 11275)
+++ gnunet/src/transport/test_plugin_transport_http.c 2010-05-10 09:16:34 UTC
(rev 11276)
@@ -185,6 +185,7 @@
env.max_connections = max_connect_per_transport;
}
+#if 0
static int
process_stat (void *cls,
const char *subsystem,
@@ -208,7 +209,9 @@
}
return GNUNET_YES;
}
+#endif
+#if 0
static void
cont_func (void *cls, int success)
{
@@ -248,6 +251,7 @@
ti_check_stat = GNUNET_SCHEDULER_add_delayed (sched, STAT_INTERVALL,
&task_check_stat, NULL);
return;
}
+#endif
/**
* Runs the test.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11276 - gnunet/src/transport,
gnunet <=