![]() |
Webdar 1.0.0
Web user interface to libdar
|
class managing a pool of server objects More...
#include <server_pool.hpp>
Public Member Functions | |
server_pool (const unsigned int pool_size, const std::shared_ptr< central_report > &log) | |
server_pool (const server_pool &ref)=delete | |
server_pool (server_pool &&ref) noexcept=delete | |
server_pool & | operator= (const server_pool &ref)=delete |
server_pool & | operator= (server_pool &&ref) noexcept=delete |
bool | run_new_server (const std::shared_ptr< const authentication > &auth, std::unique_ptr< proto_connexion > &source) |
![]() | |
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 | |
Protected Member Functions | |
virtual void | inherited_run () override |
inherited from libthreadar::thread | |
virtual void | signaled_inherited_cancel () override |
inherited from libthreadar::thread_signal | |
virtual void | broken_peering_from (reference *obj) override |
to be informed when a peer has broken the peering with me More... | |
![]() | |
virtual void | broken_peering_from (reference *obj) |
to be informed when a peer has broke the peering with me More... | |
void | reset_read_peers () const |
reset the peers reading | |
bool | read_next_peer (reference *&peer) const |
class managing a pool of server objects
|
overrideprotectedvirtual |