summaryrefslogtreecommitdiff
path: root/ace/SOCK_IO.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/SOCK_IO.inl')
-rw-r--r--ace/SOCK_IO.inl16
1 files changed, 11 insertions, 5 deletions
diff --git a/ace/SOCK_IO.inl b/ace/SOCK_IO.inl
index 96950c2cd99..f1aec4af3b8 100644
--- a/ace/SOCK_IO.inl
+++ b/ace/SOCK_IO.inl
@@ -1,7 +1,11 @@
-/* -*- C++ -*- */
+// -*- C++ -*-
+//
// $Id$
#include "ace/OS_NS_unistd.h"
+#include "ace/Truncate.h"
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Send an n byte message to the connected socket.
@@ -51,7 +55,7 @@ ACE_SOCK_IO::recvv (iovec iov[],
ACE_TRACE ("ACE_SOCK_IO::recvv");
return ACE::recvv (this->get_handle (),
iov,
- n,
+ ACE_Utils::Truncate<size_t> (n),
timeout);
}
@@ -62,7 +66,7 @@ ACE_SOCK_IO::recv (iovec iov[],
{
ACE_TRACE ("ACE_SOCK_IO::recv");
return this->recvv (iov,
- static_cast<int> (n),
+ n,
timeout);
}
@@ -121,7 +125,7 @@ ACE_SOCK_IO::sendv (const iovec iov[],
ACE_TRACE ("ACE_SOCK_IO::sendv");
return ACE::sendv (this->get_handle (),
iov,
- n,
+ ACE_Utils::Truncate<size_t> (n),
timeout);
}
@@ -143,7 +147,9 @@ ACE_SOCK_IO::send (const void *buf,
{
ACE_TRACE ("ACE_SOCK_IO::send");
return ACE_OS::write (this->get_handle (),
- (const char *) buf,
+ buf,
n,
overlapped);
}
+
+ACE_END_VERSIONED_NAMESPACE_DECL