Changeset 6266 for source/ariba/Node.h
- Timestamp:
- Sep 25, 2009, 2:30:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/Node.h
r3578 r6266 282 282 bool unbind(CommunicationListener* listener, const ServiceID& sid); 283 283 284 // --- extension proposal: service directory -- 285 // main-idea: use this methods to register groups/rendevous points inside 286 // the base overlay via a distributed storage service. 287 // 288 //void put(const KeyID& key, Message* value); 289 //void get(const KeyID& key); 284 /** 285 * Adds a key value pair to the DHT 286 * 287 * @param key The key data 288 * @param value The value data 289 * @param ttl The time to live in seconds 290 */ 291 void put( const Data& key, const Data& value, uint16_t ttl ); 292 293 /** 294 * Queries for values stored in the DHT. Fires an communication event when 295 * values arrive. 296 * 297 * @param key The key data 298 * @param sid The service that is requesting the values 299 */ 300 void get( const Data& key, const ServiceID& sid ); 301 302 290 303 //------------------------------------------------------------------------- 291 304 //
Note:
See TracChangeset
for help on using the changeset viewer.