summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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);