diff options
Diffstat (limited to 'src/transport/transport-testing-cmds.h')
-rw-r--r-- | src/transport/transport-testing-cmds.h | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/src/transport/transport-testing-cmds.h b/src/transport/transport-testing-cmds.h index 1088f2e5b..46f6045dc 100644 --- a/src/transport/transport-testing-cmds.h +++ b/src/transport/transport-testing-cmds.h | |||
@@ -116,7 +116,9 @@ struct StartPeerState | |||
116 | */ | 116 | */ |
117 | struct GNUNET_MQ_MessageHandler *handlers; | 117 | struct GNUNET_MQ_MessageHandler *handlers; |
118 | 118 | ||
119 | //FIXME documentation | 119 | /** |
120 | * GNUnet configuration file used to start a peer. | ||
121 | */ | ||
120 | char *cfgname; | 122 | char *cfgname; |
121 | 123 | ||
122 | /** | 124 | /** |
@@ -124,7 +126,9 @@ struct StartPeerState | |||
124 | */ | 126 | */ |
125 | struct GNUNET_CONFIGURATION_Handle *cfg; | 127 | struct GNUNET_CONFIGURATION_Handle *cfg; |
126 | 128 | ||
127 | //FIXME documentation | 129 | /** |
130 | * struct GNUNET_TESTING_Peer returned by GNUNET_TESTING_peer_configure. | ||
131 | */ | ||
128 | struct GNUNET_TESTING_Peer *peer; | 132 | struct GNUNET_TESTING_Peer *peer; |
129 | 133 | ||
130 | /** | 134 | /** |
@@ -167,13 +171,9 @@ struct StartPeerState | |||
167 | */ | 171 | */ |
168 | size_t hello_size; | 172 | size_t hello_size; |
169 | 173 | ||
170 | /** All of the below: FIXME documentation */ | 174 | /** |
171 | char *m; | 175 | * The label of the command which was started by calling GNUNET_TESTING_cmd_system_create. |
172 | 176 | */ | |
173 | char *n; | ||
174 | |||
175 | char *local_m; | ||
176 | |||
177 | char *system_label; | 177 | char *system_label; |
178 | 178 | ||
179 | /** | 179 | /** |
@@ -181,10 +181,20 @@ struct StartPeerState | |||
181 | */ | 181 | */ |
182 | unsigned int no; | 182 | unsigned int no; |
183 | 183 | ||
184 | /** | ||
185 | * A map with struct GNUNET_MQ_Handle values for each peer this peer | ||
186 | * is connected to. | ||
187 | */ | ||
184 | struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map; | 188 | struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map; |
185 | 189 | ||
190 | /** | ||
191 | * Test setup for this peer. | ||
192 | */ | ||
186 | const struct GNUNET_TESTING_System *tl_system; | 193 | const struct GNUNET_TESTING_System *tl_system; |
187 | 194 | ||
195 | /** | ||
196 | * Callback which is called on neighbour connect events. | ||
197 | */ | ||
188 | GNUNET_TRANSPORT_notify_connect_cb notify_connect; | 198 | GNUNET_TRANSPORT_notify_connect_cb notify_connect; |
189 | 199 | ||
190 | /** | 200 | /** |
@@ -227,14 +237,11 @@ struct TestState | |||
227 | 237 | ||
228 | /** | 238 | /** |
229 | * Create command. | 239 | * Create command. |
230 | * FIXME: Parameter list does not match documentation. | ||
231 | * FIXME: m and n parameters need a rename. | ||
232 | * | 240 | * |
233 | * @param label name for command. | 241 | * @param label name for command. |
234 | * @param system_label Label of the cmd to setup a test environment. | 242 | * @param system_label Label of the cmd to setup a test environment. |
235 | * @param m The number of the local node of the actual network namespace. | 243 | * @param no Decimal number representing the last byte of the IP address of this peer. |
236 | * @param n The number of the actual namespace. | 244 | * @param node_ip The IP address of this node. |
237 | * @param local_m Number of local nodes in each namespace. | ||
238 | * @param handlers Handler for messages received by this peer. | 245 | * @param handlers Handler for messages received by this peer. |
239 | * @param cfgname Configuration file name for this peer. | 246 | * @param cfgname Configuration file name for this peer. |
240 | * @param notify_connect Method which will be called, when a peer connects. | 247 | * @param notify_connect Method which will be called, when a peer connects. |