|
| virtual answer | give_answer (const request &req) override |
| | inherited from responder More...
|
| |
|
bool | has_waiting_threads () const |
| |
|
bool | has_working_server () const |
| |
|
std::string | get_session_ID () const |
| |
|
bool | disconnection_requested () const |
| |
| virtual void | on_event (const std::string &event_name) override |
| | inherited from actor parent class More...
|
| |
|
| responder (const responder &ref)=default |
| |
|
| responder (responder &&ref) noexcept=default |
| |
|
responder & | operator= (const responder &ref)=default |
| |
|
responder & | operator= (responder &&ref) noexcept=default |
| |
|
void | set_prefix (const chemin &chem) |
| | used for body_builder object for they have a proper prefix in path
|
| |
|
const chemin & | get_prefix () const |
| | get the recorded URI path prefix for body_builder root hierarchy
|
| |
| virtual answer | give_answer (const request &req)=0 |
| | provides a standard mean for inherited class to provide answer to requests More...
|
| |
|
| actor (const actor &ref)=default |
| |
|
| actor (actor &&ref) noexcept(false)=default |
| |
|
actor & | operator= (const actor &ref)=default |
| |
|
actor & | operator= (actor &&ref) noexcept(false) |
| |
| virtual void | on_event (const std::string &event_name)=0 |
| | implementation in inherited class of the action triggered by the event given in argument More...
|
| |
|
| reference () |
| | usual constructor
|
| |
| | reference (const reference &ref) |
| | copy constructor More...
|
| |
| | reference (reference &&ref) noexcept(false) |
| | move constructor (only operational for objects without peering) More...
|
| |
| reference & | operator= (const reference &ref) |
| | assignment operator (only operational for objects without peering) More...
|
| |
| reference & | operator= (reference &&ref) noexcept(false) |
| | move assigment operator More...
|
| |
|
virtual | ~reference () |
| | destructor
|
| |
| void | peer_with (reference *obj) |
| | method used to create a relation between two objects More...
|
| |
|
void | break_peer_with (reference *obj) |
| | break the peering with the object given as argument
|
| |
|
bool | is_peer (reference *obj) const |
| | whether a peering exists with that object
|
| |
|
bool | is_empty () const |
| | whether the current object has peering
|
| |
|
unsigned int | size () const |
| | the number of peers
|
| |
|
| static bool | create_new_session (const std::string &user, bool initial, const request &req, answer &ret) |
| | create a new session More...
|
| |
|
static unsigned int | get_num_session () |
| | get the total number of session (all users)
|
| |
|
static unsigned int | get_num_session (const std::string &user) |
| | get the total number of session for the given user
|
| |
|
static std::vector< session_summary > | get_summary () |
| | get a summary description vector of all sessions
|
| |
|
static bool | get_session_info (const std::string &session_ID, session_summary &val) |
| | get a summary description of the session known from its session_ID
|
| |
| static session * | acquire_session (const std::string &session_ID) |
| | acquire the excusivity use of the session which id is provided in argument More...
|
| |
| static void | release_session (session *sess) |
| | release the session object from our exclusive access More...
|
| |
| static bool | close_session (const std::string &session_ID) |
| | request the session to be tear down and destoyed More...
|
| |
class session - holds information about a current user session
a session object stores a work under progress. An internal mutex avoids two concurrent requests to be addressed to a given session object. Session object are sollicitated by 'server' objects which only live during a TCP connection. Several TCP connection can connect over time or in concurrency to a given session object but only one at a time handles (acquired) the session.