diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-10 09:38:50 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-10 09:38:50 +0000 |
commit | 79e6c27371e642717aa5d175b70900fd9c14d71f (patch) | |
tree | a9c7ac74fc6453aa87d1e84308c38ca56865b0e2 /src/testbed/testbed_api_peers.h | |
parent | 9fc4852d5a463232edf3fb02b4ca8c0c14b514d3 (diff) | |
download | gnunet-79e6c27371e642717aa5d175b70900fd9c14d71f.tar.gz gnunet-79e6c27371e642717aa5d175b70900fd9c14d71f.zip |
towards handling suboperations during overlay connect
Diffstat (limited to 'src/testbed/testbed_api_peers.h')
-rw-r--r-- | src/testbed/testbed_api_peers.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_peers.h b/src/testbed/testbed_api_peers.h index 357f45e51..f16dd8a30 100644 --- a/src/testbed/testbed_api_peers.h +++ b/src/testbed/testbed_api_peers.h | |||
@@ -190,6 +190,7 @@ struct PeerInfoData | |||
190 | */ | 190 | */ |
191 | struct OverlayConnectData | 191 | struct OverlayConnectData |
192 | { | 192 | { |
193 | |||
193 | /** | 194 | /** |
194 | * Peer A to connect to peer B | 195 | * Peer A to connect to peer B |
195 | */ | 196 | */ |
@@ -210,6 +211,40 @@ struct OverlayConnectData | |||
210 | */ | 211 | */ |
211 | void *cb_cls; | 212 | void *cb_cls; |
212 | 213 | ||
214 | /** | ||
215 | * OperationContext for forwarded operations generated when peer1's controller doesn't have the | ||
216 | * configuration of peer2's controller for linking laterally to attemp an | ||
217 | * overlay connection between peer 1 and peer 2. | ||
218 | */ | ||
219 | struct OperationContext *sub_opc; | ||
220 | |||
221 | /** | ||
222 | * State information for this context data | ||
223 | */ | ||
224 | enum OCDState { | ||
225 | |||
226 | /** | ||
227 | * The initial state | ||
228 | */ | ||
229 | OCD_INIT, | ||
230 | |||
231 | /** | ||
232 | * State where we attempt to acquire peer2's controller's configuration | ||
233 | */ | ||
234 | OCD_CFG_ACQUIRE, | ||
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 | |||
213 | }; | 248 | }; |
214 | 249 | ||
215 | 250 | ||