21 #ifndef G_GNET_MONITOR_H
22 #define G_GNET_MONITOR_H
66 void report( std::ostream & stream ,
67 const std::string & line_prefix = std::string() ,
68 const std::string & eol = std::string(
"\n") )
const ;
74 std::pair<std::string,bool>
findCertificate(
const std::string & certificate ) ;
88 void operator=(
const Monitor & ) ;
void removeServerPeer(const Connection &server_peer)
Removes a server connection.
void report(std::ostream &stream, const std::string &line_prefix=std::string(), const std::string &eol=std::string("\n")) const
Reports itself onto a stream.
std::vector< std::string > StringArray
A std::vector of std::strings.
void addClient(const Connection &simple_client)
Adds a client connection.
G::Slot::Signal2< std::string, std::string > & signal()
Provides a callback signal which can be connect()ed to a slot.
A pimple-pattern implementation class for GNet::Monitor.
A singleton for monitoring GNet::SimpleClient and GNet::ServerPeer connections and for storing their ...
static Monitor * instance()
Returns the singleton pointer. Returns null if none.
virtual ~Monitor()
Destructor.
void removeClient(const Connection &simple_client)
Removes a client connection.
void addServerPeer(const Connection &server_peer)
Adds a server connection.
An interface which provides address information for a network connection.
std::pair< std::string, bool > findCertificate(const std::string &certificate)
Returns a short id for the given certificate and a boolean flag to indicate if it is a new certificat...
Monitor()
Default constructor.