diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-10-31 09:07:58 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-10-31 09:07:58 +0000 |
commit | 87720d1fb9c6ff5b56ed79a43fe13c077199a822 (patch) | |
tree | 55361d379e07ed44f46ef7ad0772b5d3d5209166 /ace/SOCK_Stream.i | |
parent | 267685af03949eb809efb6f6b240c92e1aa086b1 (diff) | |
download | ATCD-87720d1fb9c6ff5b56ed79a43fe13c077199a822.tar.gz |
Jammer
Diffstat (limited to 'ace/SOCK_Stream.i')
-rw-r--r-- | ace/SOCK_Stream.i | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/ace/SOCK_Stream.i b/ace/SOCK_Stream.i index cd703bb834c..6bf38fbaf26 100644 --- a/ace/SOCK_Stream.i +++ b/ace/SOCK_Stream.i @@ -11,8 +11,7 @@ inline int ACE_SOCK_Stream::close_reader (void) { ACE_TRACE ("ACE_SOCK_Stream::close_reader"); - int result = ACE_OS::shutdown (this->get_handle (), 0); - return result; + return ACE_OS::shutdown (this->get_handle (), 0); } // Shut down just the writing end of a ACE_SOCK. @@ -21,8 +20,23 @@ inline int ACE_SOCK_Stream::close_writer (void) { ACE_TRACE ("ACE_SOCK_Stream::close_writer"); - int result = ACE_OS::shutdown (this->get_handle (), 1); - return result; + return ACE_OS::shutdown (this->get_handle (), 1); +} + +inline ssize_t +ACE_SOCK_Stream::send_n (const void *buf, size_t len, int flags, + const ACE_Time_Value *timeout) +{ + ACE_TRACE ("ACE_SOCK_Stream::send_n"); + return ACE::send_n (this->get_handle (), buf, len, flags, timeout); +} + +inline ssize_t +ACE_SOCK_Stream::recv_n (void *buf, size_t len, int flags, + const ACE_Time_Value *timeout) +{ + ACE_TRACE ("ACE_SOCK_Stream::send_n"); + return ACE::recv_n (this->get_handle (), buf, len, flags, timeout); } // Receive exactly BUF_SIZE bytes from file descriptor this->handle |