summaryrefslogtreecommitdiff
path: root/examples/Logger
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-02 23:03:56 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-02 23:03:56 +0000
commit4aa141d784b970f4f0a78355afc003bbf24dd205 (patch)
tree2a25cb8641fdce1066c4e245f557bbe8d36a46d5 /examples/Logger
parent5988f31115d6c042d7fdc7e48ebeed0de3b173ea (diff)
downloadATCD-4aa141d784b970f4f0a78355afc003bbf24dd205.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/Logger')
-rw-r--r--examples/Logger/simple-server/Logging_Acceptor.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/Logger/simple-server/Logging_Acceptor.cpp b/examples/Logger/simple-server/Logging_Acceptor.cpp
index ae34a2da71c..64a17340bdd 100644
--- a/examples/Logger/simple-server/Logging_Acceptor.cpp
+++ b/examples/Logger/simple-server/Logging_Acceptor.cpp
@@ -57,16 +57,13 @@ Logging_Acceptor::handle_input (ACE_HANDLE)
// Accept the connection from a client client daemon.
- 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.
- reset_new_handle = this->reactor ()->reset_new_handle ();
-#endif /* ACE_WIN32 */
-
+ // 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.
+ int reset_new_handle = this->reactor ()->uses_event_associations ();
+
if (this->peer_acceptor_.accept (svc_handler->peer (), // stream
0, // remote address
0, // timeout