173 * Accessor for the custody bundles list. |
174 * Accessor for the custody bundles list. |
174 */ |
175 */ |
175 BundleList* custody_bundles() { return custody_bundles_; } |
176 BundleList* custody_bundles() { return custody_bundles_; } |
176 |
177 |
177 /** |
178 /** |
178 * Accessor for the BPQ bundles list. |
179 * Accessor for the BPQ Cache. |
179 */ |
180 */ |
180 BundleList* bpq_bundles() { return bpq_bundles_; } |
181 BPQCache* bpq_cache() { return bpq_cache_; } |
181 |
182 |
182 /** |
183 /** |
183 * Format the given StringBuffer with current routing info. |
184 * Format the given StringBuffer with current routing info. |
184 */ |
185 */ |
185 void get_routing_state(oasys::StringBuffer* buf); |
186 void get_routing_state(oasys::StringBuffer* buf); |
415 * Release custody of the given bundle, sending the appropriate |
416 * Release custody of the given bundle, sending the appropriate |
416 * signal to the current custodian. |
417 * signal to the current custodian. |
417 */ |
418 */ |
418 void release_custody(Bundle* bundle); |
419 void release_custody(Bundle* bundle); |
419 |
420 |
420 /** |
421 // /** |
421 * Add BPQ bundle to the on-path cache |
422 // * TODO |
422 */ |
423 // * Add BPQ bundle to the on-path cache |
423 bool accept_bpq_response(Bundle* bundle, BPQBlock* bpq_block, |
424 // */ |
424 bool add_to_store); |
425 // bool accept_bpq_response(Bundle* bundle, BPQBlock* bpq_block, |
425 |
426 // bool add_to_store); |
426 /** |
427 // |
427 * Add BPQ bundle to the on-path cache if space allows |
428 // /** |
428 * if full, remove old bundles to make room |
429 // * Add BPQ bundle to the on-path cache if space allows |
429 */ |
430 // * if full, remove old bundles to make room |
430 bool add_bundle_to_bpq_cache(Bundle* bundle, bool add_to_store); |
431 // * TODO |
431 |
432 // */ |
432 /** |
433 // bool add_bundle_to_bpq_cache(Bundle* bundle, bool add_to_store); |
433 * todo |
434 // |
434 */ |
435 // /** |
435 bool answer_bpq_query(Bundle* bundle, BPQBlock* bpq_block); |
436 // * TODO |
|
437 // */ |
|
438 // bool answer_bpq_query(Bundle* bundle, BPQBlock* bpq_block); |
436 |
439 |
437 /** |
440 /** |
438 * Add the bundle to the pending list and (optionally) the |
441 * Add the bundle to the pending list and (optionally) the |
439 * persistent store, and set up the expiration timer for it. |
442 * persistent store, and set up the expiration timer for it. |
440 * |
443 * |
524 |
528 |
525 /// The list of all bundles that we have custody of |
529 /// The list of all bundles that we have custody of |
526 BundleList* custody_bundles_; |
530 BundleList* custody_bundles_; |
527 |
531 |
528 /// The list of all bundles with the response QUERY_EXTENSION |
532 /// The list of all bundles with the response QUERY_EXTENSION |
529 BundleList* bpq_bundles_; |
533 /// TODO |
|
534 BPQCache* bpq_cache_; |
530 |
535 |
531 /// The event queue |
536 /// The event queue |
532 oasys::MsgQueue<BundleEvent*>* eventq_; |
537 oasys::MsgQueue<BundleEvent*>* eventq_; |
533 |
538 |
534 /// The default endpoint id for reaching this daemon, used for |
539 /// The default endpoint id for reaching this daemon, used for |