summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-17 23:51:56 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-17 23:51:56 +0000
commit84a28feb48ef30f9070f3192db34017975c141c1 (patch)
treebe52899f630001522913b3da897b4e761b77d1da /examples
parent00caf989d1e0c6cd0da8a13b68c05e472a87be6a (diff)
downloadATCD-84a28feb48ef30f9070f3192db34017975c141c1.tar.gz
ChangeLogTag:Thu Sep 17 18:51:08 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/Multicast/Log_Wrapper.cpp10
-rw-r--r--examples/Reactor/Multicast/server.cpp10
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp10
3 files changed, 15 insertions, 15 deletions
diff --git a/examples/Reactor/Multicast/Log_Wrapper.cpp b/examples/Reactor/Multicast/Log_Wrapper.cpp
index e871872f26f..9431715b495 100644
--- a/examples/Reactor/Multicast/Log_Wrapper.cpp
+++ b/examples/Reactor/Multicast/Log_Wrapper.cpp
@@ -58,11 +58,11 @@ Log_Wrapper::log_message (ACE_Log_Priority type, char *message)
this->log_msg_.msg_length = strlen(message)+1;
this->log_msg_.sequence_number = htonl(sequence_number_);
- ACE_IO_Vector iovp[2];
- iovp[0].buffer ( &log_msg_);
- iovp[0].length (sizeof log_msg_);
- iovp[1].buffer (message);
- iovp[1].length (log_msg_.msg_length);
+ iovec iovp[2];
+ iovp[0].iov_base = &log_msg_;
+ iovp[0].iov_len = sizeof (log_msg_);
+ iovp[1].iov_base = message;
+ iovp[1].iov_len = log_msg_.msg_length;
logger_.send (iovp, 2);
diff --git a/examples/Reactor/Multicast/server.cpp b/examples/Reactor/Multicast/server.cpp
index 39a97aaac30..569cfe96b1e 100644
--- a/examples/Reactor/Multicast/server.cpp
+++ b/examples/Reactor/Multicast/server.cpp
@@ -144,11 +144,11 @@ int
Server_Events::handle_input (ACE_HANDLE)
{
// Receive message from multicast group.
- ACE_IO_Vector iovp[2];
- iovp[0].buffer (buf_);
- iovp[0].length (sizeof log_record_);
- iovp[1].buffer (&buf_[sizeof (log_record_)]);
- iovp[1].length (4 * BUFSIZ - sizeof log_record_);
+ iovec iovp[2];
+ iovp[0].iov_base = buf_;
+ iovp[0].iov_len = sizeof (log_record_);
+ iovp[1].iov_base = &buf_[sizeof (log_record_)];
+ iovp[1].iov_len = 4 * BUFSIZ - sizeof (log_record_);
ssize_t retcode =
this->mcast_dgram_.recv (iovp, 2, this->remote_addr_);
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
index 4d99b809c1f..8a7b2be7fcd 100644
--- a/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
@@ -68,12 +68,12 @@ main (int argc, char *argv[])
/* First send the name of the file as a datagram. */
- ACE_IO_Vector iov[2];
+ iovec iov[2];
- iov[0].buffer ("filename: ");
- iov[0].length (11);
- iov[1].buffer (file_name);
- iov[1].length (ACE_OS::strlen (file_name));
+ iov[0].iov_base = "filename: ";
+ iov[0].iov_len = 11;
+ iov[1].iov_base = file_name;
+ iov[1].iov_len = ACE_OS::strlen (file_name);
if (dc.send (iov, 2) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), -1);