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

Public Member Functions

 SHMConnectionServer (SHMListener *receiver, const char *name, const TimePeriod &timeout, size_t size)
 
 ~SHMConnectionServer ()
 
bool stop ()
 
void run ()
 
- Public Member Functions inherited from commore::Thread
 Thread ()
 
virtual ~Thread ()
 
bool start ()
 
bool request_stop ()
 
bool stop ()
 
bool is_to_stop ()
 
bool is_stopped ()
 
bool is_running ()
 
bool wait (TimePeriod timeout)
 
bool trigger ()
 
virtual void run_item ()
 
- Public Member Functions inherited from SHMPipe
 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 ()
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void interface_release ()
 
virtual void Run ()
 
virtual CriticalSectionget_cs ()
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const ACharfactory_name ()
 
- Protected Attributes inherited from SHMPipe
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

SHMConnectionServer::SHMConnectionServer ( SHMListener receiver,
const char *  name,
const TimePeriod timeout,
size_t  size 
)
inline
SHMConnectionServer::~SHMConnectionServer ( )
inline

Member Function Documentation

void SHMConnectionServer::run ( )
virtual

The main thread function. The method is call on start method by created system thread. The thread terminate when this method end. Must be implemented by derived class.

Remarks
The implementation must constantly check the stop flag to allow graceful stop.

Reimplemented from commore::Thread.

bool SHMConnectionServer::stop ( )
inline

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