commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SHMPipe Class Reference
+ Inheritance diagram for SHMPipe:

Public Member Functions

 SHMPipe (const char *name, bool isServer, size_t size)
 
size_t get_file_map_size () const
 
 ~SHMPipe ()
 
void close ()
 
unsigned int get_pid () const
 
const AStringname () const
 
void signal_data_wrote (bool close=false)
 
void signal_data_read ()
 
bool wait_for_data_wrote (const TimePeriod &timeout)
 
bool wait_for_data_read (const TimePeriod &timeout)
 
MemoryBufferget_buff () const
 
void reset ()
 
bool receive_buffer (CommBuffer &buf, const TimePeriod &timeout)
 
bool send_buffer (CommBuffer &buf, const TimePeriod &timeout)
 
bool send_receive (CommBuffer &inBuf, CommBuffer &outBuf, const TimePeriod &timeout)
 
bool is_ok ()
 
bool created ()
 

Protected Attributes

Event event_data_read_by_client_
 
Event event_data_read_by_server_
 
Event event_data_wrote_by_client_
 
Event event_data_wrote_by_server_
 

Constructor & Destructor Documentation

SHMPipe::SHMPipe ( const char *  name,
bool  isServer,
size_t  size 
)
inline
SHMPipe::~SHMPipe ( )
inline

Member Function Documentation

void SHMPipe::close ( )
inline
bool SHMPipe::created ( )
inline
MemoryBuffer* SHMPipe::get_buff ( ) const
inline
size_t SHMPipe::get_file_map_size ( ) const
inline
unsigned int SHMPipe::get_pid ( ) const
inline
bool SHMPipe::is_ok ( )
inline
const AString& SHMPipe::name ( ) const
inline
bool SHMPipe::receive_buffer ( CommBuffer buf,
const TimePeriod timeout 
)
inline
void SHMPipe::reset ( )
inline
bool SHMPipe::send_buffer ( CommBuffer buf,
const TimePeriod timeout 
)
inline
bool SHMPipe::send_receive ( CommBuffer inBuf,
CommBuffer outBuf,
const TimePeriod timeout 
)
inline
void SHMPipe::signal_data_read ( )
inline
void SHMPipe::signal_data_wrote ( bool  close = false)
inline
bool SHMPipe::wait_for_data_read ( const TimePeriod timeout)
inline
bool SHMPipe::wait_for_data_wrote ( const TimePeriod timeout)
inline

Member Data Documentation

Event SHMPipe::event_data_read_by_client_
protected
Event SHMPipe::event_data_read_by_server_
protected
Event SHMPipe::event_data_wrote_by_client_
protected
Event SHMPipe::event_data_wrote_by_server_
protected

The documentation for this class was generated from the following file: