aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-cmds.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing-cmds.h')
-rw-r--r--src/transport/transport-testing-cmds.h72
1 files changed, 69 insertions, 3 deletions
diff --git a/src/transport/transport-testing-cmds.h b/src/transport/transport-testing-cmds.h
index ecdabd35f..67e5723f5 100644
--- a/src/transport/transport-testing-cmds.h
+++ b/src/transport/transport-testing-cmds.h
@@ -228,22 +228,36 @@ GNUNET_TRANSPORT_cmd_start_peer (const char *label,
228 struct GNUNET_MQ_MessageHandler *handlers, 228 struct GNUNET_MQ_MessageHandler *handlers,
229 const char *cfgname); 229 const char *cfgname);
230 230
231
231struct GNUNET_TESTING_Command 232struct GNUNET_TESTING_Command
232GNUNET_TRANSPORT_cmd_stop_peer (const char *label, 233GNUNET_TRANSPORT_cmd_stop_peer (const char *label,
233 const char *start_label); 234 const char *start_label);
234 235
236
235struct GNUNET_TESTING_Command 237struct GNUNET_TESTING_Command
236GNUNET_TRANSPORT_cmd_connect_peers (const char *label, 238GNUNET_TRANSPORT_cmd_connect_peers (const char *label,
237 const char *start_peer_label, 239 const char *start_peer_label,
238 const char *create_label, 240 const char *create_label,
239 uint32_t num); 241 uint32_t num);
240 242
243
241struct GNUNET_TESTING_Command 244struct GNUNET_TESTING_Command
242GNUNET_TRANSPORT_cmd_connect_peers_v2 (const char *label, 245GNUNET_TRANSPORT_cmd_connect_peers_v2 (const char *label,
243 const char *start_peer_label, 246 const char *start_peer_label,
244 const char *create_label, 247 const char *create_label,
245 uint32_t num); 248 uint32_t num);
246 249
250
251/**
252 * Create command.
253 *
254 * @param label name for command.
255 * @param start_peer_label Label of the cmd to start a peer.
256 * @param create_label Label of the cmd to create the testing system.
257 * @param num Number globally identifying the node.
258 * @param The topology for the test setup.
259 * @return command.
260 */
247struct GNUNET_TESTING_Command 261struct GNUNET_TESTING_Command
248GNUNET_TRANSPORT_cmd_connect_peers_v3 (const char *label, 262GNUNET_TRANSPORT_cmd_connect_peers_v3 (const char *label,
249 const char *start_peer_label, 263 const char *start_peer_label,
@@ -252,6 +266,40 @@ GNUNET_TRANSPORT_cmd_connect_peers_v3 (const char *label,
252 struct GNUNET_TESTING_NetjailTopology * 266 struct GNUNET_TESTING_NetjailTopology *
253 topology); 267 topology);
254 268
269
270/**
271 * Create command.
272 *
273 * @param label name for command.
274 * @param start_peer_label Label of the cmd to start a peer.
275 * @param create_label Label of the cmd to create the testing system.
276 * @param num Number globally identifying the node.
277 * @param node_n The number of the node in a network namespace.
278 * @param namespace_n The number of the network namespace.
279 * @param The topology for the test setup.
280 * @return command.
281 */
282struct GNUNET_TESTING_Command
283GNUNET_TRANSPORT_cmd_backchannel_check (const char *label,
284 const char *start_peer_label,
285 const char *create_label,
286 uint32_t num,
287 unsigned int node_n,
288 unsigned int namespace_n,
289 struct GNUNET_TESTING_NetjailTopology *
290 topology);
291
292
293/**
294 * Create command.
295 *
296 * @param label name for command.
297 * @param m The number of the local node of the actual network namespace.
298 * @param n The number of the actual namespace.
299 * @param num Number globally identifying the node.
300 * @param start_peer_label Label of the cmd to start a peer.
301 * @return command.
302 */
255struct GNUNET_TESTING_Command 303struct GNUNET_TESTING_Command
256GNUNET_TRANSPORT_cmd_send_simple (const char *label, 304GNUNET_TRANSPORT_cmd_send_simple (const char *label,
257 char *m, 305 char *m,
@@ -263,10 +311,8 @@ GNUNET_TRANSPORT_cmd_send_simple (const char *label,
263 * Create command. 311 * Create command.
264 * 312 *
265 * @param label name for command. 313 * @param label name for command.
266 * @param m The number of the local node of the actual network namespace.
267 * @param n The number of the actual namespace.
268 * @param num Number globally identifying the node.
269 * @param start_peer_label Label of the cmd to start a peer. 314 * @param start_peer_label Label of the cmd to start a peer.
315 * @param num Number globally identifying the node.
270 * @return command. 316 * @return command.
271 */ 317 */
272struct GNUNET_TESTING_Command 318struct GNUNET_TESTING_Command
@@ -274,6 +320,26 @@ GNUNET_TRANSPORT_cmd_send_simple_v2 (const char *label,
274 const char *start_peer_label, 320 const char *start_peer_label,
275 uint32_t num); 321 uint32_t num);
276 322
323
324/**
325 * Create command.
326 *
327 * @param label name for command.
328 * @param start_peer_label Label of the cmd to start a peer.
329 * @param start_peer_label Label of the cmd which started the test system.
330 * @param num Number globally identifying the node.
331 * @param The topology for the test setup.
332 * @return command.
333 */
334struct GNUNET_TESTING_Command
335GNUNET_TRANSPORT_cmd_send_simple_v3 (const char *label,
336 const char *start_peer_label,
337 const char *create_label,
338 uint32_t num,
339 struct GNUNET_TESTING_NetjailTopology *
340 topology);
341
342
277int 343int
278GNUNET_TRANSPORT_get_trait_peer_id (const struct 344GNUNET_TRANSPORT_get_trait_peer_id (const struct
279 GNUNET_TESTING_Command *cmd, 345 GNUNET_TESTING_Command *cmd,