Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Reactive_MEM_IO Class Reference

#include <MEM_IO.h>

Inheritance diagram for ACE_Reactive_MEM_IO:

Inheritance graph
[legend]
Collaboration diagram for ACE_Reactive_MEM_IO:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Reactive_MEM_IO (void)
virtual ~ACE_Reactive_MEM_IO (void)
virtual int init (ACE_HANDLE handle, const ACE_TCHAR *name, MALLOC_OPTIONS *options)
 Initialize the MEM_SAP object. More...

virtual int recv_buf (ACE_MEM_SAP_Node *&buf, int flags, const ACE_Time_Value *timeout)
 Fetch location of next available data into <recv_buffer_>. More...

virtual int send_buf (ACE_MEM_SAP_Node *buf, int flags, const ACE_Time_Value *timeout)
 Wait to to <timeout> amount of time to send <buf>. More...

ssize_t get_buf_len (const off_t off, ACE_MEM_SAP_Node *&buf)
 Convert the buffer offset <off> to absolute address to <buf>. More...


Constructor & Destructor Documentation

ASYS_INLINE ACE_Reactive_MEM_IO::ACE_Reactive_MEM_IO void   
 

ACE_Reactive_MEM_IO::~ACE_Reactive_MEM_IO void    [virtual]
 


Member Function Documentation

ASYS_INLINE ssize_t ACE_Reactive_MEM_IO::get_buf_len const off_t    off,
ACE_MEM_SAP_Node *&    buf
 

Convert the buffer offset <off> to absolute address to <buf>.

Return the size of valid information containing in the <buf>, -1 if <shm_malloc_> is not initialized.

int ACE_Reactive_MEM_IO::init ACE_HANDLE    handle,
const ACE_TCHAR   name,
MALLOC_OPTIONS   options
[virtual]
 

Initialize the MEM_SAP object.

Reimplemented from ACE_MEM_SAP.

int ACE_Reactive_MEM_IO::recv_buf ACE_MEM_SAP_Node *&    buf,
int    flags,
const ACE_Time_Value   timeout
[virtual]
 

Fetch location of next available data into <recv_buffer_>.

As this operation read the address of the data off the socket using ACE::recv, <timeout> only applies to ACE::recv.

Reimplemented from ACE_MEM_SAP.

int ACE_Reactive_MEM_IO::send_buf ACE_MEM_SAP_Node   buf,
int    flags,
const ACE_Time_Value   timeout
[virtual]
 

Wait to to <timeout> amount of time to send <buf>.

If <send> times out a -1 is returned with <errno == ETIME>. If it succeeds the number of bytes sent is returned.

Reimplemented from ACE_MEM_SAP.


The documentation for this class was generated from the following files:
Generated on Thu May 23 00:21:45 2002 for ACE by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001