summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ace/SOCK_Dgram.cpp49
-rw-r--r--ace/SOCK_Dgram.i10
2 files changed, 4 insertions, 55 deletions
diff --git a/ace/SOCK_Dgram.cpp b/ace/SOCK_Dgram.cpp
index a4705e4d1f5..4fce2fd9b63 100644
--- a/ace/SOCK_Dgram.cpp
+++ b/ace/SOCK_Dgram.cpp
@@ -432,52 +432,3 @@ ACE_SOCK_Dgram::recv (void *buf,
addr.set_size (addr_len);
return status;
}
-
-ssize_t
-ACE_SOCK_Dgram::send (const iovec *buffers,
- int buffer_count,
- size_t &number_of_bytes_sent,
- int flags,
- const ACE_Addr &addr,
- ACE_OVERLAPPED *overlapped,
- ACE_OVERLAPPED_COMPLETION_FUNC func) const
-{
- ACE_TRACE ("ACE_SOCK_Dgram::send");
- sockaddr *saddr = (sockaddr *) addr.get_addr ();
- size_t len = addr.get_size ();
- return ACE_OS::sendto (this->get_handle (),
- buffers,
- buffer_count,
- number_of_bytes_sent,
- flags,
- (const sockaddr *) saddr,
- len,
- overlapped,
- func);
-}
-
-ssize_t
-ACE_SOCK_Dgram::recv (iovec *buffers,
- int buffer_count,
- size_t &number_of_bytes_recvd,
- int &flags,
- ACE_Addr &addr,
- ACE_OVERLAPPED *overlapped,
- ACE_OVERLAPPED_COMPLETION_FUNC func) const
-{
- ACE_TRACE ("ACE_SOCK_IO::recv");
- sockaddr *saddr = (sockaddr *) addr.get_addr ();
- int addr_len = addr.get_size ();
-
- ssize_t status = ACE_OS::recvfrom (this->get_handle (),
- buffers,
- buffer_count,
- number_of_bytes_recvd,
- flags,
- (sockaddr *) saddr,
- &addr_len,
- overlapped,
- func);
- addr.set_size (addr_len);
- return status;
-}
diff --git a/ace/SOCK_Dgram.i b/ace/SOCK_Dgram.i
index 5d713b9872e..723a3d3b9d8 100644
--- a/ace/SOCK_Dgram.i
+++ b/ace/SOCK_Dgram.i
@@ -121,10 +121,9 @@ ACE_SOCK_Dgram::send (const void *buf,
iovec buffer[1];
buffer[0].iov_len = n;
- buffer[0].iov_base = buf;
+ buffer[0].iov_base = (char *) buf;
size_t number_of_bytes_sent = 0;
- return this->send (this->get_handle (),
- buffer,
+ return this->send (buffer,
1,
number_of_bytes_sent,
flags,
@@ -147,10 +146,9 @@ ACE_SOCK_Dgram::recv (void *buf,
iovec buffer[1];
buffer[0].iov_len = n;
- buffer[0].iov_base = buf;
+ buffer[0].iov_base = (char *) buf;
size_t number_of_bytes_recvd = 0;
- return this->recv (this->get_handle (),
- buffer,
+ return this->recv (buffer,
1,
number_of_bytes_recvd,
flags,