X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcommand_server.hxx;h=378ef08d97e696a08b15493bfeefcc2f56b31c29;hp=c86b2858da60948e8db2c0d068cf753c01acbd3a;hb=c7857475c8b0f02cac3ce29a617a4d542fa59f37;hpb=a762a4763df16c8e38afe727921273cd929709a4 diff --git a/src/command_server.hxx b/src/command_server.hxx index c86b285..378ef08 100644 --- a/src/command_server.hxx +++ b/src/command_server.hxx @@ -43,6 +43,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,7 +53,10 @@ template struct Derived_from { Derived_from() { void(*p)(T*) = constraints; } }; -/// server handling group of incoming commands +/** @brief server handling group of incoming commands + + the template must be derived from libt2n::command. +*/ template class group_command_server : public command_server {