diff options
Diffstat (limited to 'TAO/tao/Connection_Cache_Manager.inl')
-rw-r--r-- | TAO/tao/Connection_Cache_Manager.inl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/TAO/tao/Connection_Cache_Manager.inl b/TAO/tao/Connection_Cache_Manager.inl index 3e163841d4b..657fedf85da 100644 --- a/TAO/tao/Connection_Cache_Manager.inl +++ b/TAO/tao/Connection_Cache_Manager.inl @@ -1,6 +1,40 @@ /* -*- C++ -*- */ //$Id$ + +ACE_INLINE int +TAO_Connection_Cache_Manager:: + cache_handler (TAO_Base_Connection_Property *prop, + TAO_Connection_Handler *handler) +{ + // Compose the ExternId & Intid + TAO_Cache_ExtId ext_id (prop); + TAO_Cache_IntId int_id (handler); + + return this->bind (ext_id, + int_id); + +} + +ACE_INLINE int +TAO_Connection_Cache_Manager:: + find_handler (TAO_Base_Connection_Property *prop, + TAO_Connection_Handler *&handler) +{ + // Compose the ExternId + TAO_Cache_ExtId ext_id (prop); + TAO_Cache_IntId int_id; + + int retval = this->find (ext_id, + int_id); + if (retval == 0) + { + handler = int_id.handler (); + } + + return retval; +} + ACE_INLINE int TAO_Connection_Cache_Manager::bind (TAO_Cache_ExtId &ext_id, TAO_Cache_IntId &int_id) |