diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-05-18 15:47:37 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-05-18 15:47:37 +0000 |
commit | 1cc51bab7988f0411485f3abbd7cbbc44ced19f3 (patch) | |
tree | 704be6fbfdb662e488f526aba2335568e3e8f17c /ace/FILE_IO.i | |
parent | 1b9cd84eae2d0deb4f7f53b3cb78e13659ae7e8f (diff) | |
download | ATCD-1cc51bab7988f0411485f3abbd7cbbc44ced19f3.tar.gz |
.
Diffstat (limited to 'ace/FILE_IO.i')
-rw-r--r-- | ace/FILE_IO.i | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ace/FILE_IO.i b/ace/FILE_IO.i index 36cc4fd01d6..ab5956c468c 100644 --- a/ace/FILE_IO.i +++ b/ace/FILE_IO.i @@ -3,6 +3,37 @@ // FILE_IO.i +ASYS_INLINE ssize_t +ACE_FILE_IO::sendv_n (const iovec iov[], size_t n) const +{ + ACE_TRACE ("ACE_FILE_IO::sendv_n"); + return ACE::writev_n (this->get_handle (), + iov, + n); +} + +// Recv an n byte message from the file. + +ASYS_INLINE ssize_t +ACE_FILE_IO::recvv_n (iovec iov[], size_t n) const +{ + ACE_TRACE ("ACE_FILE_IO::recvv_n"); + // @@ Carlos, can you please update this to call the + // new ACE::recvv_n() method that you write? + return ACE_OS::readv (this->get_handle (), + iov, + n); +} + +// Send an <iovec> of size <n> to the file. + +ASYS_INLINE ssize_t +ACE_FILE_IO::sendv (const iovec iov[], size_t n) const +{ + ACE_TRACE ("ACE_FILE_IO::sendv"); + return ACE_OS::writev (this->get_handle (), iov, n); +} + // Send exactly N bytes from BUF to this file. Keeping trying until // this many bytes are sent. @@ -98,4 +129,5 @@ ACE_FILE_IO::recv (void *buf, size_t n, return ACE_OS::read (this->get_handle (), (char *) buf, n, overlapped); } + #endif /* ACE_HAS_STREAM_PIPES */ |