summaryrefslogtreecommitdiff
path: root/examples/Reactor/Proactor/test_proactor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Reactor/Proactor/test_proactor.cpp')
-rw-r--r--examples/Reactor/Proactor/test_proactor.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/Reactor/Proactor/test_proactor.cpp b/examples/Reactor/Proactor/test_proactor.cpp
index 89fe5e67ef2..37c93cd7f57 100644
--- a/examples/Reactor/Proactor/test_proactor.cpp
+++ b/examples/Reactor/Proactor/test_proactor.cpp
@@ -303,9 +303,6 @@ private:
ACE_Asynch_Read_File rf_;
// rf (read file): for writing from the file
- ACE_Asynch_Transmit_File tf_;
- // Transmit file.
-
ACE_HANDLE input_file_;
// File to read from
@@ -400,7 +397,8 @@ Sender::transmit_file (void)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "ACE_OS::open"), -1);
// Open ACE_Asynch_Transmit_File
- if (this->tf_.open (*this) == -1)
+ ACE_Asynch_Transmit_File tf;
+ if (tf.open (*this) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "ACE_Asynch_Transmit_File::open"), -1);
// Header and trailer data for the file.
@@ -411,7 +409,7 @@ Sender::transmit_file (void)
this->welcome_message_.length ());
// Send it
- if (this->tf_.transmit_file (file_handle,
+ if (tf.transmit_file (file_handle,
&this->header_and_trailer_) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "ACE_Asynch_Transmit_File::transmit_file"), -1);