commore
1.0.6-SNAPSHOT
|
Public Member Functions | |
SHMListener (const char *name, size_t size) | |
~SHMListener () | |
bool | start () |
bool | stop () |
bool | is_ok () |
bool | is_stopped () |
const AString & | get_address () const |
TimePeriod | get_timeout () const |
void | set_timeout (const TimePeriod &timeout) |
void | run () |
void | set_param (const Tuple ¶m) |
Tuple & | get_param (Tuple ¶m) |
int | call (const Tuple &inReq, Tuple &outReq) |
![]() | |
Listener () | |
virtual | ~Listener () |
virtual void | set_callback (Callback &callback) |
virtual void | reset_callback () |
![]() | |
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 CriticalSection * | get_cs () |
![]() | |
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 () |
![]() | |
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 AString & | name () 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) |
MemoryBuffer * | get_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 () |
Additional Inherited Members | |
![]() | |
static const AChar * | factory_name () |
![]() | |
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 AChar * | factory_name () |
![]() | |
Callback * | callback_ |
![]() | |
Event | event_data_read_by_client_ |
Event | event_data_read_by_server_ |
Event | event_data_wrote_by_client_ |
Event | event_data_wrote_by_server_ |
|
inline |
|
inline |
|
inlinevirtual |
Implements commore::Listener.
Reimplemented from commore::Listener.
|
inline |
|
inlinevirtual |
Check listener integrity Implementation return here possible invalid state
Reimplemented from commore::Listener.
|
inlinevirtual |
Reimplemented from commore::Listener.
|
inlinevirtual |
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.
Reimplemented from commore::Thread.
|
inlinevirtual |
Param management
Reimplemented from commore::Listener.
|
inline |
|
inlinevirtual |
Start listen, notice that start is automaticaly called when object is created.
Reimplemented from commore::Listener.
|
inlinevirtual |
Stop listen Finish current call, close connections, and does not accept new connection any more.
Reimplemented from commore::Listener.