summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-18 23:12:59 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-18 23:12:59 +0000
commit5a23df34c7b68f734c8ec2e73ef7b1383190df4e (patch)
treec866e6c7d518af63c04747da5114564873ea497a /examples
parent551d97f29e72a46461127cb59fcb72523be58a84 (diff)
downloadATCD-5a23df34c7b68f734c8ec2e73ef7b1383190df4e.tar.gz
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/Proactor/test_proactor.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/Reactor/Proactor/test_proactor.cpp b/examples/Reactor/Proactor/test_proactor.cpp
index 5807b795d36..04f611ba5d3 100644
--- a/examples/Reactor/Proactor/test_proactor.cpp
+++ b/examples/Reactor/Proactor/test_proactor.cpp
@@ -115,7 +115,9 @@ Receiver::open (ACE_HANDLE handle,
this->file_offset_ = 0;
// Open dump file (in OVERLAPPED mode)
- this->dump_file_ = ACE_OS::open (dump_file, O_CREAT | O_RDWR | O_TRUNC | FILE_FLAG_OVERLAPPED);
+ this->dump_file_ = ACE_OS::open (dump_file,
+ O_CREAT | O_RDWR | O_TRUNC | FILE_FLAG_OVERLAPPED,
+ 0644);
if (this->dump_file_ == ACE_INVALID_HANDLE)
{
ACE_ERROR ((LM_ERROR, "%p\n", "ACE_OS::open"));
@@ -314,7 +316,7 @@ Sender::Sender (void)
transmit_file_done_ (0)
{
// Moment of inspiration :-)
- static char *data = "Welcome to Irfan World! Irfan RULES here !!";
+ static char *data = "Welcome to Irfan World! Irfan RULES here !!\n";
this->welcome_message_.init (data, ACE_OS::strlen (data));
this->welcome_message_.wr_ptr (ACE_OS::strlen (data));
}
@@ -386,7 +388,7 @@ Sender::transmit_file (void)
// Header and trailer data for the file
this->header_and_trailer_.header_and_trailer (&this->welcome_message_,
this->welcome_message_.length (),
- &this->welcome_message_,
+ this->welcome_message_.duplicate (),
this->welcome_message_.length ());
// Starting position