ACE
6.1.0
|
Defines the methods in the ACE_MEM_Stream abstraction. More...
#include <MEM_Stream.h>
Public Types | |
typedef ACE_Addr | PEER_ADDR |
Public Member Functions | |
ACE_MEM_Stream (void) | |
Constructor. | |
ACE_MEM_Stream (ACE_HANDLE h) | |
Constructor (sets the underlying ACE_HANDLE with <h>). | |
~ACE_MEM_Stream (void) | |
Destructor. | |
ssize_t | send_n (const void *buf, size_t n) |
ssize_t | recv_n (void *buf, size_t n) |
ssize_t | send_n (const void *buf, size_t n, int flags) |
ssize_t | recv_n (void *buf, size_t n, int flags) |
int | close_reader (void) |
Close down the reader. | |
int | close_writer (void) |
Close down the writer. | |
int | close (void) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Friends | |
class | ACE_MEM_Acceptor |
class | ACE_MEM_Connector |
Defines the methods in the ACE_MEM_Stream abstraction.
This adds additional wrapper methods atop the ACE_MEM_IO class. Notice that ACE_MEM_Stream can only send messages no bigger than the underlying MMAP file size minus sizeof (ACE_MEM_SAP_Node). The size of the MMAP file is default to ACE_MEM_STREAM_MIN_BUFFER. (Define above in this file, to 4096 bytes.) If you need to increase the size of allowable message ACE_MEM_Stream can handle, you can set it to either ACE_MEM_Acceptor::malloc_options()
. minimal_bytes_ ACE_MEM_Acceptor::init_buffer_size
(size_t size); before establishing a connection.
typedef ACE_Addr ACE_MEM_Stream::PEER_ADDR |
ACE_MEM_Stream::ACE_MEM_Stream | ( | void | ) | [inline] |
Constructor.
ACE_MEM_Stream::ACE_MEM_Stream | ( | ACE_HANDLE | h | ) | [inline] |
Constructor (sets the underlying ACE_HANDLE with <h>).
ACE_MEM_Stream::~ACE_MEM_Stream | ( | void | ) | [inline] |
Destructor.
int ACE_MEM_Stream::close | ( | void | ) |
Close down the socket (we need this to make things work correctly on Win32, which requires use to do a <close_writer> before doing the close to avoid losing data).
Reimplemented from ACE_SOCK.
int ACE_MEM_Stream::close_reader | ( | void | ) | [inline] |
Close down the reader.
int ACE_MEM_Stream::close_writer | ( | void | ) | [inline] |
Close down the writer.
void ACE_MEM_Stream::dump | ( | void | ) | const |
Dump the state of an object.
Reimplemented from ACE_MEM_IO.
ssize_t ACE_MEM_Stream::recv_n | ( | void * | buf, |
size_t | n | ||
) | [inline] |
ssize_t ACE_MEM_Stream::recv_n | ( | void * | buf, |
size_t | n, | ||
int | flags | ||
) | [inline] |
ssize_t ACE_MEM_Stream::send_n | ( | const void * | buf, |
size_t | n | ||
) | [inline] |
Send n bytes, keep trying until n are sent. Recv n bytes, keep trying until n are received.
ssize_t ACE_MEM_Stream::send_n | ( | const void * | buf, |
size_t | n, | ||
int | flags | ||
) | [inline] |
Send n bytes, keep trying until n are sent. Recv n bytes, keep trying until n are received.
friend class ACE_MEM_Acceptor [friend] |
friend class ACE_MEM_Connector [friend] |
Declare the dynamic allocation hooks.
Reimplemented from ACE_MEM_IO.