diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-21 01:43:44 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-21 01:43:44 +0000 |
commit | e7ac4930359adeef240b2b009b53dcb61983309b (patch) | |
tree | 7a7fae85ebd5d13b4115cdf1457005f5953b11ea /ace/Acceptor.cpp | |
parent | 3ddffd81f297dd598458a9f541ea5e6aaa73760d (diff) | |
download | ATCD-e7ac4930359adeef240b2b009b53dcb61983309b.tar.gz |
Allow single connection accespt
Diffstat (limited to 'ace/Acceptor.cpp')
-rw-r--r-- | ace/Acceptor.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ace/Acceptor.cpp b/ace/Acceptor.cpp index a83c1791b16..2f56a897ba3 100644 --- a/ace/Acceptor.cpp +++ b/ace/Acceptor.cpp @@ -441,7 +441,8 @@ ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open ACE_Concurrency_Strategy<SVC_HANDLER> *con_s, ACE_Scheduling_Strategy<SVC_HANDLER> *sch_s, const ASYS_TCHAR *service_name, - const ASYS_TCHAR *service_description) + const ASYS_TCHAR *service_description, + int use_select) { ACE_TRACE ("ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open"); @@ -501,6 +502,8 @@ ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open } this->scheduling_strategy_ = sch_s; + this->use_select_ = use_select; + return this->reactor ()->register_handler (this, ACE_Event_Handler::ACCEPT_MASK); } @@ -510,7 +513,8 @@ ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Strategy_Acceptor (const ASYS_TCHAR service_name[], - const ASYS_TCHAR service_description[]) + const ASYS_TCHAR service_description[], + int use_select) : creation_strategy_ (0), delete_creation_strategy_ (0), accept_strategy_ (0), @@ -530,6 +534,7 @@ ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Strategy_Acceptor if (service_description != 0) ACE_ALLOCATOR (this->service_description_, ACE_OS::strdup (service_description)); + this->use_select_ = use_select; } template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> @@ -541,12 +546,13 @@ ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Strategy_Acceptor ACE_Concurrency_Strategy<SVC_HANDLER> *con_s, ACE_Scheduling_Strategy<SVC_HANDLER> *sch_s, const ASYS_TCHAR service_name[], - const ASYS_TCHAR service_description[]) + const ASYS_TCHAR service_description[], + int use_select) { ACE_TRACE ("ACE_Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Strategy_Acceptor"); if (this->open (addr, reactor, cre_s, acc_s, con_s, sch_s, - service_name, service_description) == -1) + service_name, service_description, use_select) == -1) ACE_ERROR ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("ACE_Strategy_Acceptor::ACE_Strategy_Acceptor"))); } |