X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fclient.hxx;h=d4c2480342d1acefecd382d9fc3f6634893b9852;hp=28cded21db55932454d1384cd51637b6a2db4344;hb=e98b5dc1fe10ed25b986fc5cfb8fd0ba2f329a3a;hpb=a11e19b7adab2d5b937573701959562f06087ac5 diff --git a/src/client.hxx b/src/client.hxx index 28cded2..d4c2480 100644 --- a/src/client.hxx +++ b/src/client.hxx @@ -20,6 +20,7 @@ #define __LIBT2N_CLIENT #include +#include #include "connection.hxx" #include "types.hxx" @@ -27,12 +28,20 @@ namespace libt2n { +/** @brief a (generic) connection from client to server. Abstract. + */ class client_connection : public connection { + private: + log_level_values log_level; + std::ostream *logstream; + public: - client_connection() - : connection() - { } + client_connection(); + + void set_logging(std::ostream *_logstream, log_level_values _log_level); + + std::ostream* get_logstream(log_level_values level); }; }