diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-28 07:15:10 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-28 07:15:10 +0000 |
commit | 3b5bbfa354a3f8ce58faf4d4fed2a6f92a38477f (patch) | |
tree | ff469e1a2d1062972ae0da21a2b5827b33955353 /tests/Conn_Test.cpp | |
parent | 6131017914242d505120f5a56853058d6172f2e0 (diff) | |
download | ATCD-3b5bbfa354a3f8ce58faf4d4fed2a6f92a38477f.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/Conn_Test.cpp')
-rw-r--r-- | tests/Conn_Test.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/Conn_Test.cpp b/tests/Conn_Test.cpp index 7d30e37cdae..f5b39f374ba 100644 --- a/tests/Conn_Test.cpp +++ b/tests/Conn_Test.cpp @@ -69,6 +69,14 @@ Svc_Handler::open (void *) return 0; } +int +Svc_Handler::recycle (void *) +{ + ACE_DEBUG ((LM_DEBUG, "(%P|%t) recycling Svc_Handler %d with handle %d\n", + this, this->peer ().get_handle ())); + return 0; +} + void Svc_Handler::send_data (void) { @@ -167,6 +175,7 @@ typedef ACE_Oneshot_Acceptor<Svc_Handler, ACE_SOCK_ACCEPTOR> ACCEPTOR; typedef ACE_Connector<Svc_Handler, ACE_SOCK_CONNECTOR> CONNECTOR; typedef ACE_Strategy_Connector<Svc_Handler, ACE_SOCK_CONNECTOR> STRAT_CONNECTOR; typedef ACE_NOOP_Creation_Strategy<Svc_Handler> NULL_CREATION_STRATEGY; +typedef ACE_NOOP_Concurrency_Strategy<Svc_Handler> NULL_ACTIVATION_STRATEGY; typedef ACE_Cached_Connect_Strategy<Svc_Handler, ACE_SOCK_CONNECTOR, ACE_SYNCH_RW_MUTEX> CACHED_CONNECT_STRATEGY; // **************************************** @@ -316,13 +325,15 @@ client (void *arg) CONNECTOR connector; NULL_CREATION_STRATEGY creation_strategy; + NULL_ACTIVATION_STRATEGY activation_strategy; // Configure the Strategy Connector with a strategy that caches // connection. CACHED_CONNECT_STRATEGY caching_connect_strategy; STRAT_CONNECTOR strat_connector (0, &creation_strategy, - &caching_connect_strategy); + &caching_connect_strategy, + &activation_strategy); Client_Info info; info.server_addr_ = &server_addr; info.connector_ = &connector; |