summaryrefslogtreecommitdiff
path: root/examples/Reactor/WFMO_Reactor/test_network_events.cpp
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
commitf1c9ff96aa9136f78a078ce17c5dc21807ddb918 (patch)
tree2a25cb8641fdce1066c4e245f557bbe8d36a46d5 /examples/Reactor/WFMO_Reactor/test_network_events.cpp
parente82ea4edfd3e5bb7ed3263e9b00060f185f09240 (diff)
downloadATCD-f1c9ff96aa9136f78a078ce17c5dc21807ddb918.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/Reactor/WFMO_Reactor/test_network_events.cpp')
-rw-r--r--examples/Reactor/WFMO_Reactor/test_network_events.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/Reactor/WFMO_Reactor/test_network_events.cpp b/examples/Reactor/WFMO_Reactor/test_network_events.cpp
index a139cff7d7f..c9089044ace 100644
--- a/examples/Reactor/WFMO_Reactor/test_network_events.cpp
+++ b/examples/Reactor/WFMO_Reactor/test_network_events.cpp
@@ -150,16 +150,13 @@ Network_Listener::handle_input (ACE_HANDLE handle)
ACE_INET_Addr remote_address;
ACE_SOCK_Stream stream;
- 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 ();
+
ACE_ASSERT (this->acceptor_.accept (stream, // stream
&remote_address, // remote address
0, // timeout