X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcommand_server.hxx;h=c839e7813427531cdf1720faa782d08f3dd61794;hp=3c0026267a33f9221cd171620d4f47c6144c3664;hb=3b2543e7dfd705d6e624560dd5a681898c0f242c;hpb=539b09c0c1819f9394e5a0ae8b3df3687715fa7c diff --git a/src/command_server.hxx b/src/command_server.hxx index 3c00262..c839e78 100644 --- a/src/command_server.hxx +++ b/src/command_server.hxx @@ -33,6 +33,8 @@ class command_server void handle_packet(const std::string& packet, server_connection* conn); + int guard_handle; + protected: virtual command* cast_command(command* input) { return input; } @@ -43,6 +45,9 @@ class command_server void handle(long long usec_timeout=-1, long long* usec_timeout_remaining=NULL); void send_hello(unsigned int conn_id); + + std::ostream* get_logstream(log_level_values level) + { return s.get_logstream(level); } }; template struct Derived_from { @@ -50,6 +55,10 @@ template struct Derived_from { Derived_from() { void(*p)(T*) = constraints; } }; +/** @brief server handling group of incoming commands + + the template must be derived from libt2n::command. +*/ template class group_command_server : public command_server {