plebble
us::gov::socket::clients_t Struct Referencefinal

#include <clients.h>

Inheritance diagram for us::gov::socket::clients_t:
Collaboration diagram for us::gov::socket::clients_t:

Public Types

typedef unordered_map< int, client * > b
 
typedef us::gov::socket::gc_t gc_t
 

Public Member Functions

 clients_t (server *s)
 
 clients_t (const clients_t &other)=delete
 
 ~clients_t ()
 
void add (client *)
 
void add_update (client *)
 
void update (vector< int > &honest, vector< pair< uint32_t, string >> &evil)
 
void dump (const string &prefix, ostream &os) const
 
ko start ()
 
ko wait_ready (const chrono::system_clock::time_point &deadline) const
 
void stop ()
 
void join ()
 
void feedlo ()
 

Public Attributes

mutex mx
 
client locli
 
gc_t gc
 
serversvr
 

Member Typedef Documentation

◆ b

typedef unordered_map<int,client*> us::gov::socket::clients_t::b

◆ gc_t

Constructor & Destructor Documentation

◆ clients_t() [1/2]

us::gov::socket::clients_t::clients_t ( server s)

◆ clients_t() [2/2]

us::gov::socket::clients_t::clients_t ( const clients_t other)
delete

◆ ~clients_t()

us::gov::socket::clients_t::~clients_t ( )

Member Function Documentation

◆ add()

void us::gov::socket::clients_t::add ( client )

◆ add_update()

void us::gov::socket::clients_t::add_update ( client )

◆ dump()

void us::gov::socket::clients_t::dump ( const string &  prefix,
ostream &  os 
) const

◆ feedlo()

void us::gov::socket::clients_t::feedlo ( )

◆ join()

void us::gov::socket::clients_t::join ( )
inline

References gc, and us::gov::bgtask::join().

Here is the call graph for this function:

◆ start()

ko us::gov::socket::clients_t::start ( )

◆ stop()

void us::gov::socket::clients_t::stop ( )
inline

References gc, and us::gov::bgtask::stop().

Here is the call graph for this function:

◆ update()

void us::gov::socket::clients_t::update ( vector< int > &  honest,
vector< pair< uint32_t, string >> &  evil 
)

◆ wait_ready()

ko us::gov::socket::clients_t::wait_ready ( const chrono::system_clock::time_point &  deadline) const

Member Data Documentation

◆ gc

gc_t us::gov::socket::clients_t::gc

Referenced by join(), and stop().

◆ locli

client us::gov::socket::clients_t::locli

◆ mx

mutex us::gov::socket::clients_t::mx
mutable

◆ svr

server* us::gov::socket::clients_t::svr

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