aboutsummaryrefslogtreecommitdiff
path: root/src/nse/test_nse_multipeer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nse/test_nse_multipeer.c')
-rw-r--r--src/nse/test_nse_multipeer.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nse/test_nse_multipeer.c b/src/nse/test_nse_multipeer.c
index 45462013c..9b085dd90 100644
--- a/src/nse/test_nse_multipeer.c
+++ b/src/nse/test_nse_multipeer.c
@@ -52,7 +52,7 @@ struct NSEPeer
52 52
53 /** 53 /**
54 * Handle to NSE service. 54 * Handle to NSE service.
55 */ 55 */
56 struct GNUNET_NSE_Handle *nse_handle; 56 struct GNUNET_NSE_Handle *nse_handle;
57}; 57};
58 58
@@ -100,9 +100,9 @@ handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp,
100 100
101 FPRINTF (stderr, 101 FPRINTF (stderr,
102 "Received network size estimate from peer %u. logSize: %f std.dev. %f (%f/%u)\n", 102 "Received network size estimate from peer %u. logSize: %f std.dev. %f (%f/%u)\n",
103 (unsigned int) (peer - nse_peers), 103 (unsigned int) (peer - nse_peers),
104 estimate, std_dev, 104 estimate, std_dev,
105 GNUNET_NSE_log_estimate_to_n (estimate), 105 GNUNET_NSE_log_estimate_to_n (estimate),
106 NUM_PEERS); 106 NUM_PEERS);
107 ok = 0; 107 ok = 0;
108} 108}
@@ -118,7 +118,7 @@ handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp,
118 * operation has executed successfully. 118 * operation has executed successfully.
119 */ 119 */
120static void 120static void
121nse_connect_complete_cb (void *cls, 121nse_connect_complete_cb (void *cls,
122 struct GNUNET_TESTBED_Operation *op, 122 struct GNUNET_TESTBED_Operation *op,
123 void *ca_result, 123 void *ca_result,
124 const char *emsg) 124 const char *emsg)
@@ -143,18 +143,18 @@ nse_connect_complete_cb (void *cls,
143/** 143/**
144 * Adapter function called to establish a connection to 144 * Adapter function called to establish a connection to
145 * the NSE service. 145 * the NSE service.
146 * 146 *
147 * @param cls closure 147 * @param cls closure
148 * @param cfg configuration of the peer to connect to; will be available until 148 * @param cfg configuration of the peer to connect to; will be available until
149 * GNUNET_TESTBED_operation_done() is called on the operation returned 149 * GNUNET_TESTBED_operation_done() is called on the operation returned
150 * from GNUNET_TESTBED_service_connect() 150 * from GNUNET_TESTBED_service_connect()
151 * @return service handle to return in 'op_result', NULL on error 151 * @return service handle to return in 'op_result', NULL on error
152 */ 152 */
153static void * 153static void *
154nse_connect_adapter (void *cls, 154nse_connect_adapter (void *cls,
155 const struct GNUNET_CONFIGURATION_Handle *cfg) 155 const struct GNUNET_CONFIGURATION_Handle *cfg)
156{ 156{
157 return GNUNET_NSE_connect (cfg, 157 return GNUNET_NSE_connect (cfg,
158 &handle_estimate, 158 &handle_estimate,
159 cls); 159 cls);
160} 160}
@@ -163,7 +163,7 @@ nse_connect_adapter (void *cls,
163/** 163/**
164 * Adapter function called to destroy connection to 164 * Adapter function called to destroy connection to
165 * NSE service. 165 * NSE service.
166 * 166 *
167 * @param cls closure 167 * @param cls closure
168 * @param op_result service handle returned from the connect adapter 168 * @param op_result service handle returned from the connect adapter
169 */ 169 */
@@ -177,7 +177,7 @@ nse_disconnect_adapter (void *cls,
177 177
178/** 178/**
179 * Actual "main" function for the testcase. 179 * Actual "main" function for the testcase.
180 * 180 *
181 * @param cls closure 181 * @param cls closure
182 * @param h the run handle 182 * @param h the run handle
183 * @param num_peers number of peers in 'peers' 183 * @param num_peers number of peers in 'peers'