2 #include "ace/MEM_Stream.h"
3 #include "ace/OS_NS_sys_socket.h"
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
8 ACE_MEM_Stream::ACE_MEM_Stream ()
10 // ACE_TRACE ("ACE_MEM_Stream::ACE_MEM_Stream");
14 ACE_MEM_Stream::ACE_MEM_Stream (ACE_HANDLE h)
16 // ACE_TRACE ("ACE_MEM_Stream::ACE_MEM_Stream");
21 ACE_MEM_Stream::~ACE_MEM_Stream ()
23 // ACE_TRACE ("ACE_MEM_Stream::~ACE_MEM_Stream");
27 ACE_MEM_Stream::close_reader ()
29 ACE_TRACE ("ACE_MEM_Stream::close_reader");
30 if (this->get_handle () != ACE_INVALID_HANDLE)
31 return ACE_OS::shutdown (this->get_handle (), ACE_SHUTDOWN_READ);
36 // Shut down just the writing end of a ACE_SOCK.
39 ACE_MEM_Stream::close_writer ()
41 ACE_TRACE ("ACE_MEM_Stream::close_writer");
42 if (this->get_handle () != ACE_INVALID_HANDLE)
43 return ACE_OS::shutdown (this->get_handle (), ACE_SHUTDOWN_WRITE);
49 ACE_MEM_Stream::send_n (const void *buf, size_t n)
51 return this->send (buf, n);
56 ACE_MEM_Stream::recv_n (void *buf, size_t n)
58 return this->recv (buf, n);
62 ACE_MEM_Stream::send_n (const void *buf, size_t n, int flags)
64 return this->send (buf, n, flags);
68 ACE_MEM_Stream::recv_n (void *buf, size_t n, int flags)
70 return this->recv (buf, n, flags);
73 ACE_END_VERSIONED_NAMESPACE_DECL