diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-01 22:44:12 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-01 22:44:12 +0000 |
commit | 01e21ba6afe2d16ba45b5a73f2777152fd27ffc3 (patch) | |
tree | e4ba10669fac95d66763c8d9c8812eda9da3b7b0 /src/testbed/testbed_api_peers.h | |
parent | 5200c6d68ff70c484c480794e5debbc50b62e2aa (diff) | |
download | gnunet-01e21ba6afe2d16ba45b5a73f2777152fd27ffc3.tar.gz gnunet-01e21ba6afe2d16ba45b5a73f2777152fd27ffc3.zip |
adaptive parallelism for overlay connect operations based on SD calculations
Diffstat (limited to 'src/testbed/testbed_api_peers.h')
-rw-r--r-- | src/testbed/testbed_api_peers.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/src/testbed/testbed_api_peers.h b/src/testbed/testbed_api_peers.h index 13eb1d036..f02079926 100644 --- a/src/testbed/testbed_api_peers.h +++ b/src/testbed/testbed_api_peers.h | |||
@@ -219,31 +219,14 @@ struct OverlayConnectData | |||
219 | struct OperationContext *sub_opc; | 219 | struct OperationContext *sub_opc; |
220 | 220 | ||
221 | /** | 221 | /** |
222 | * State information for this context data | 222 | * The starting time of this operation |
223 | */ | 223 | */ |
224 | enum OCDState { | 224 | struct GNUNET_TIME_Absolute tstart; |
225 | |||
226 | /** | ||
227 | * The initial state | ||
228 | */ | ||
229 | OCD_INIT, | ||
230 | 225 | ||
231 | /** | 226 | /** |
232 | * State where we attempt to acquire peer2's controller's configuration | 227 | * The timing slot index for this operation |
233 | */ | 228 | */ |
234 | OCD_CFG_ACQUIRE, | 229 | unsigned int tslot_index; |
235 | |||
236 | /** | ||
237 | * State where we link peer1's controller to peer2's controller | ||
238 | */ | ||
239 | OCD_LINK_CONTROLLERS, | ||
240 | |||
241 | /** | ||
242 | * State where we re-ask controller of peer1 to attempt an overlay connect | ||
243 | * between peer1 and peer2 | ||
244 | */ | ||
245 | OCD_REATTEMPT_OVERLAY_CONNECT | ||
246 | } state; | ||
247 | 230 | ||
248 | }; | 231 | }; |
249 | 232 | ||