diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-30 06:52:10 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-30 06:52:10 +0000 |
commit | 429acf680aae9b51d714e4276e2fdb1913382136 (patch) | |
tree | c09e4d5d602a2027199825e055d6e27c99acf6f3 /tests/Conn_Test.cpp | |
parent | cea37d3bb28fdfdd408298b6a8e600fdfb57a616 (diff) | |
download | ATCD-429acf680aae9b51d714e4276e2fdb1913382136.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/Conn_Test.cpp')
-rw-r--r-- | tests/Conn_Test.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/Conn_Test.cpp b/tests/Conn_Test.cpp index 8e5000e5037..a6471fa4e20 100644 --- a/tests/Conn_Test.cpp +++ b/tests/Conn_Test.cpp @@ -181,10 +181,10 @@ Svc_Handler::idle (u_long flags) // can't deal with them, though. #if defined (ACE_HAS_TEMPLATE_SPECIALIZATION) && !defined (ACE_HAS_GNUG_PRE_2_8) -size_t -ACE_Hash_Addr<ACE_INET_Addr>::hash_i (const ACE_INET_Addr &addr) const +u_long +ACE_Refcounted_Hash_Recyclable<ACE_INET_Addr>::hash_i (void) const { - return addr.get_ip_address () + addr.get_port_number (); + return this->t_.get_ip_address () + this->t_.get_port_number (); } #endif /* ACE_HAS_TEMPLATE_SPECIALIZATION && newer g++, if __GNUG__ */ @@ -698,12 +698,10 @@ main (int argc, ASYS_TCHAR *argv[]) } #define CACHED_CONNECT_STRATEGY ACE_Cached_Connect_Strategy<Svc_Handler, ACE_SOCK_CONNECTOR, ACE_SYNCH_MUTEX> -#define HASH_ADDR ACE_Hash_Addr<ACE_INET_Addr> -#define REFCOUNTED_HASH_RECYCLABLE_ADDR ACE_Refcounted_Hash_Recyclable<ACE_Hash_Addr<ACE_INET_Addr> > +#define REFCOUNTED_HASH_RECYCLABLE_ADDR ACE_Refcounted_Hash_Recyclable<ACE_INET_Addr> #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class CACHED_CONNECT_STRATEGY; -template class HASH_ADDR; template class REFCOUNTED_HASH_RECYCLABLE_ADDR; template class ACE_NOOP_Creation_Strategy<Svc_Handler>; template class ACE_Concurrency_Strategy<Svc_Handler>; @@ -742,7 +740,6 @@ template class ACE_Unbounded_Queue<ACE_Thread_Descriptor*>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate CACHED_CONNECT_STRATEGY -#pragma instantiate HASH_ADDR #pragma instantiate REFCOUNTED_HASH_RECYCLABLE_ADDR #pragma instantiate ACE_NOOP_Creation_Strategy<Svc_Handler> #pragma instantiate ACE_Concurrency_Strategy<Svc_Handler> |