3 #include "ace/OS_NS_sys_uio.h"
4 #include "ace/OS_NS_unistd.h"
6 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 ACE_FILE_IO::sendv_n (const iovec iov[], int n) const
11 ACE_TRACE ("ACE_FILE_IO::sendv_n");
12 return ACE::writev_n (this->get_handle (),
18 ACE_FILE_IO::send_n (const ACE_Message_Block *message_block,
19 const ACE_Time_Value *timeout,
20 size_t *bytes_transferred)
22 ACE_TRACE ("ACE_FILE_IO::send_n");
23 ACE_UNUSED_ARG (timeout);
24 return ACE::write_n (this->get_handle (),
29 // Recv an n byte message from the file.
32 ACE_FILE_IO::recvv_n (iovec iov[], int n) const
34 ACE_TRACE ("ACE_FILE_IO::recvv_n");
35 // @@ Carlos, can you please update this to call the
36 // new ACE::recvv_n() method that you write?
37 return ACE_OS::readv (this->get_handle (),
42 // Send an <iovec> of size <n> to the file.
45 ACE_FILE_IO::sendv (const iovec iov[], int n) const
47 ACE_TRACE ("ACE_FILE_IO::sendv");
48 return ACE_OS::writev (this->get_handle (), iov, n);
51 // Send exactly N bytes from BUF to this file. Keeping trying until
52 // this many bytes are sent.
55 ACE_FILE_IO::send_n (const void *buf, size_t n) const
57 ACE_TRACE ("ACE_FILE_IO::send_n");
58 return ACE::write_n (this->get_handle (), buf, n);
61 // Receive exactly N bytes from this file into BUF. Keep trying until
62 // this many bytes are received.
65 ACE_FILE_IO::recv_n (void *buf, size_t n) const
67 ACE_TRACE ("ACE_FILE_IO::recv_n");
68 return ACE::read_n (this->get_handle (), buf, n);
72 ACE_FILE_IO::send (const void *buf, size_t n) const
74 ACE_TRACE ("ACE_FILE_IO::send");
75 return ACE_OS::write (this->get_handle (), buf, n);
79 ACE_FILE_IO::recv (void *buf, size_t n) const
81 ACE_TRACE ("ACE_FILE_IO::recv");
82 return ACE_OS::read (this->get_handle (), buf, n);
86 ACE_FILE_IO::send (const iovec iov[], int n) const
88 ACE_TRACE ("ACE_FILE_IO::send");
89 return ACE_OS::writev (this->get_handle (), iov, n);
93 ACE_FILE_IO::recv (iovec iov[], int n) const
95 ACE_TRACE ("ACE_FILE_IO::recv");
96 return ACE_OS::readv (this->get_handle (), iov, n);
99 #if defined (ACE_HAS_STREAM_PIPES)
101 ACE_FILE_IO::recv (ACE_Str_Buf *cntl, ACE_Str_Buf *data, int *band, int *flags) const
103 ACE_TRACE ("ACE_FILE_IO::recv");
104 return ACE_OS::getpmsg (this->get_handle (), (strbuf *) cntl, (strbuf *) data, band, flags);
108 ACE_FILE_IO::send (const ACE_Str_Buf *cntl, const ACE_Str_Buf *data, int band, int flags) const
110 ACE_TRACE ("ACE_FILE_IO::send");
111 return ACE_OS::putpmsg (this->get_handle (), (strbuf *) cntl, (strbuf *) data, band, flags);
115 ACE_FILE_IO::recv (ACE_Str_Buf *cntl, ACE_Str_Buf *data, int *flags) const
117 ACE_TRACE ("ACE_FILE_IO::recv");
118 return ACE_OS::getmsg (this->get_handle (), (strbuf *) cntl, (strbuf *) data, flags);
122 ACE_FILE_IO::send (const ACE_Str_Buf *cntl, const ACE_Str_Buf *data, int flags) const
124 ACE_TRACE ("ACE_FILE_IO::send");
125 return ACE_OS::putmsg (this->get_handle (), (strbuf *) cntl, (strbuf *) data, flags);
129 ACE_FILE_IO::send (const void *buf, size_t n,
130 ACE_OVERLAPPED *overlapped) const
132 ACE_TRACE ("ACE_FILE_IO::send");
133 return ACE_OS::write (this->get_handle (),
139 ACE_FILE_IO::recv (void *buf, size_t n,
140 ACE_OVERLAPPED *overlapped) const
142 ACE_TRACE ("ACE_FILE_IO::recv");
143 return ACE_OS::read (this->get_handle (), buf, n,
147 #endif /* ACE_HAS_STREAM_PIPES */
149 ACE_END_VERSIONED_NAMESPACE_DECL