Changeset 6266 for source/ariba/overlay/BaseOverlay.h
- Timestamp:
- Sep 25, 2009, 2:30:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.h
r5916 r6266 122 122 class LinkDescriptor; 123 123 class OverlayMsg; 124 class DHT; 124 125 125 126 class BaseOverlay: public MessageReceiver, … … 284 285 void leaveSpoVNet(); 285 286 287 /// put a value to the DHT with a ttl given in seconds 288 void dhtPut( const Data& key, const Data& value, int ttl = 0); 289 290 /// removes a key value pair from the DHT 291 void dhtRemove( const Data& key, const Data& value ); 292 293 /// removes all data stored at the given key 294 void dhtRemove( const Data& key ); 295 296 /// requests data stored using key 297 void dhtGet( const Data& key, const ServiceID& service ); 298 286 299 protected: 287 288 300 /** 289 301 * @see ariba::communication::CommunicationEvents.h … … 397 409 bool handleJoinReply( OverlayMsg* msg, const LinkID& bcLink ); 398 410 411 // handle DHT messages 412 bool handleDHTMessage( OverlayMsg* msg ); 413 399 414 // handle link messages 400 415 bool handleLinkRequest( OverlayMsg* msg, LinkDescriptor* ld ); … … 403 418 bool handleLinkDirect( OverlayMsg* msg, LinkDescriptor* ld ); 404 419 bool handleLinkAlive( OverlayMsg* msg, LinkDescriptor* ld ); 420 405 421 406 422 // link state handling ----------------------------------------------------- … … 487 503 bool ignore_down = false ); 488 504 505 // distributed hashtable handling ------------------------------------------ 506 507 DHT* dht; 508 509 void stabilizeDHT(); 510 489 511 // misc -------------------------------------------------------------------- 490 512
Note:
See TracChangeset
for help on using the changeset viewer.