/usr/include/ace/MEM_Stream.inl is in libace-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | // -*- C++ -*-
//
// $Id: MEM_Stream.inl 92069 2010-09-28 11:38:59Z johnnyw $
#include "ace/MEM_Stream.h"
#include "ace/OS_NS_sys_socket.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_MEM_Stream::ACE_MEM_Stream (void)
{
// ACE_TRACE ("ACE_MEM_Stream::ACE_MEM_Stream");
}
ACE_INLINE
ACE_MEM_Stream::ACE_MEM_Stream (ACE_HANDLE h)
{
// ACE_TRACE ("ACE_MEM_Stream::ACE_MEM_Stream");
this->set_handle (h);
}
ACE_INLINE
ACE_MEM_Stream::~ACE_MEM_Stream (void)
{
// ACE_TRACE ("ACE_MEM_Stream::~ACE_MEM_Stream");
}
ACE_INLINE int
ACE_MEM_Stream::close_reader (void)
{
ACE_TRACE ("ACE_MEM_Stream::close_reader");
if (this->get_handle () != ACE_INVALID_HANDLE)
return ACE_OS::shutdown (this->get_handle (), ACE_SHUTDOWN_READ);
else
return 0;
}
// Shut down just the writing end of a ACE_SOCK.
ACE_INLINE int
ACE_MEM_Stream::close_writer (void)
{
ACE_TRACE ("ACE_MEM_Stream::close_writer");
if (this->get_handle () != ACE_INVALID_HANDLE)
return ACE_OS::shutdown (this->get_handle (), ACE_SHUTDOWN_WRITE);
else
return 0;
}
ACE_INLINE ssize_t
ACE_MEM_Stream::send_n (const void *buf, size_t n)
{
return this->send (buf, n);
}
ACE_INLINE ssize_t
ACE_MEM_Stream::recv_n (void *buf, size_t n)
{
return this->recv (buf, n);
}
ACE_INLINE ssize_t
ACE_MEM_Stream::send_n (const void *buf, size_t n, int flags)
{
return this->send (buf, n, flags);
}
ACE_INLINE ssize_t
ACE_MEM_Stream::recv_n (void *buf, size_t n, int flags)
{
return this->recv (buf, n, flags);
}
ACE_END_VERSIONED_NAMESPACE_DECL
|