diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-30 03:39:22 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-30 03:39:22 +0000 |
commit | c6489d434dfacc32dbf52d9f696419de36c447f0 (patch) | |
tree | 32b676609e5e3da81978e1a2c29f66f5686e0b88 /ace | |
parent | 0438d02358863e13b2854a3f629a96a8f08bf7c0 (diff) | |
download | ATCD-c6489d434dfacc32dbf52d9f696419de36c447f0.tar.gz |
Changed to use reset_new_handle () for querying whether we need to reset newly accepted/connected handles or not.
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Acceptor.cpp | 22 | ||||
-rw-r--r-- | ace/Service_Manager.cpp | 11 | ||||
-rw-r--r-- | ace/Strategies_T.cpp | 11 |
3 files changed, 20 insertions, 24 deletions
diff --git a/ace/Acceptor.cpp b/ace/Acceptor.cpp index a1562d30994..137886ead72 100644 --- a/ace/Acceptor.cpp +++ b/ace/Acceptor.cpp @@ -226,12 +226,11 @@ ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::accept_svc_handler int reset_new_handle = 0; #if defined (ACE_WIN32) // Try to find out if the implementation of the reactor that we are - // using is the WFMO_Reactor. If so we need to reset the event - // association for the newly created handle. This is because the - // newly created handle will inherit the properties of the listen - // handle, including its event associations. - if (dynamic_cast <ACE_WFMO_Reactor *> (this->reactor ()->implementation ())) - reset_new_handle = 1; + // using requires us to reset the event association for the newly + // created handle. This is because the newly created handle will + // inherit the properties of the listen handle, including its event + // associations. + reset_new_handle = this->reactor ()->reset_new_handle (); #endif /* ACE_WIN32 */ if (this->peer_acceptor_.accept (svc_handler->peer (), // stream @@ -935,12 +934,11 @@ ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::handle_input (ACE_HANDLE int reset_new_handle = 0; #if defined (ACE_WIN32) // Try to find out if the implementation of the reactor that we are - // using is the WFMO_Reactor. If so we need to reset the event - // association for the newly created handle. This is because the - // newly created handle will inherit the properties of the listen - // handle, including its event associations. - if (dynamic_cast <ACE_WFMO_Reactor *> (this->reactor ()->implementation ())) - reset_new_handle = 1; + // using requires us to reset the event association for the newly + // created handle. This is because the newly created handle will + // inherit the properties of the listen handle, including its event + // associations. + reset_new_handle = this->reactor ()->reset_new_handle (); #endif /* ACE_WIN32 */ if (this->shared_accept (this->svc_handler_, // stream diff --git a/ace/Service_Manager.cpp b/ace/Service_Manager.cpp index 3fdf1b5eb73..cf8654ee294 100644 --- a/ace/Service_Manager.cpp +++ b/ace/Service_Manager.cpp @@ -209,12 +209,11 @@ ACE_Service_Manager::handle_input (ACE_HANDLE) int reset_new_handle = 0; #if defined (ACE_WIN32) // Try to find out if the implementation of the reactor that we are - // using is the WFMO_Reactor. If so we need to reset the event - // association for the newly created handle. This is because the - // newly created handle will inherit the properties of the listen - // handle, including its event associations. - if (dynamic_cast <ACE_WFMO_Reactor *> (ACE_Reactor::instance ()->implementation ())) - reset_new_handle = 1; + // using requires us to reset the event association for the newly + // created handle. This is because the newly created handle will + // inherit the properties of the listen handle, including its event + // associations. + reset_new_handle = ACE_Reactor::instance ()->reset_new_handle (); #endif /* ACE_WIN32 */ if (this->acceptor_.accept (this->client_stream_, // stream diff --git a/ace/Strategies_T.cpp b/ace/Strategies_T.cpp index ab9ae5c07d0..6fcd9273375 100644 --- a/ace/Strategies_T.cpp +++ b/ace/Strategies_T.cpp @@ -433,12 +433,11 @@ ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::accept_svc_handler int reset_new_handle = 0; #if defined (ACE_WIN32) // Try to find out if the implementation of the reactor that we are - // using is the WFMO_Reactor. If so we need to reset the event - // association for the newly created handle. This is because the - // newly created handle will inherit the properties of the listen - // handle, including its event associations. - if (dynamic_cast <ACE_WFMO_Reactor *> (this->reactor_->implementation ())) - reset_new_handle = 1; + // using requires us to reset the event association for the newly + // created handle. This is because the newly created handle will + // inherit the properties of the listen handle, including its event + // associations. + reset_new_handle = this->reactor_->reset_new_handle (); #endif /* ACE_WIN32 */ if (this->acceptor_.accept (svc_handler->peer (), // stream |