X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fconnection.hxx;h=4092fde3ee8b79b486c1b70d6ecbdf8cb1d4400f;hp=633798b14b1ac631a3c9495077fe11767d54b1a1;hb=d535333ffe637c9e547e68b792f334c229641520;hpb=9424729586fdb0aabb671d2f1266bdb07e0bed38 diff --git a/src/connection.hxx b/src/connection.hxx index 633798b..4092fde 100644 --- a/src/connection.hxx +++ b/src/connection.hxx @@ -21,6 +21,9 @@ #include +#include "types.hxx" + + namespace libt2n { @@ -33,7 +36,7 @@ class connection protected: connection() - { closed=false; } + { closed=false; } std::string buffer; @@ -43,6 +46,8 @@ class connection virtual void real_write(const std::string& data)=0; + virtual std::ostream* get_logstream(log_level_values level)=0; + public: virtual ~connection() { close(); }