X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fconnection.hxx;h=4092fde3ee8b79b486c1b70d6ecbdf8cb1d4400f;hp=633798b14b1ac631a3c9495077fe11767d54b1a1;hb=a7170401dd90dc79cc7d7a808cfe18a06c7e983b;hpb=d184c64894e6c4f3adb9467078acfc9e7446664a 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(); }