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.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/transport/transport-testing-cmds.h b/src/transport/transport-testing-cmds.h
index 10729990d..5d0b902f6 100644
--- a/src/transport/transport-testing-cmds.h
+++ b/src/transport/transport-testing-cmds.h
@@ -165,6 +165,10 @@ struct StartPeerState
165 165
166 GNUNET_TRANSPORT_NotifyConnect notify_connect; 166 GNUNET_TRANSPORT_NotifyConnect notify_connect;
167 167
168 /**
169 * Flag indicating, if udp broadcast should be switched on.
170 */
171 unsigned int broadcast;
168}; 172};
169 173
170 174
@@ -188,6 +192,20 @@ GNUNET_TRANSPORT_get_trait_state (const struct
188 struct StartPeerState **sps); 192 struct StartPeerState **sps);
189 193
190 194
195/**
196 * Create command.
197 *
198 * @param label name for command.
199 * @param system_label Label of the cmd to setup a test environment.
200 * @param m The number of the local node of the actual network namespace.
201 * @param n The number of the actual namespace.
202 * @param local_m Number of local nodes in each namespace.
203 * @param handlers Handler for messages received by this peer.
204 * @param cfgname Configuration file name for this peer.
205 * @param notify_connect Method which will be called, when a peer connects.
206 * @param broadcast Flag indicating, if broadcast should be switched on.
207 * @return command.
208 */
191struct GNUNET_TESTING_Command 209struct GNUNET_TESTING_Command
192GNUNET_TRANSPORT_cmd_start_peer (const char *label, 210GNUNET_TRANSPORT_cmd_start_peer (const char *label,
193 const char *system_label, 211 const char *system_label,
@@ -195,7 +213,8 @@ GNUNET_TRANSPORT_cmd_start_peer (const char *label,
195 char *node_ip, 213 char *node_ip,
196 struct GNUNET_MQ_MessageHandler *handlers, 214 struct GNUNET_MQ_MessageHandler *handlers,
197 const char *cfgname, 215 const char *cfgname,
198 GNUNET_TRANSPORT_NotifyConnect notify_connect); 216 GNUNET_TRANSPORT_NotifyConnect notify_connect,
217 unsigned int broadcast);
199 218
200 219
201struct GNUNET_TESTING_Command 220struct GNUNET_TESTING_Command