X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_client.hxx;h=a35bbfdbf938e6b175ccb780024d44e4a888cb3b;hp=8a379f8b2cbdf09ba398b89f15744165066559df;hb=28cb45a5725e9c6054d7048a9bf969b9f2c94d64;hpb=9424729586fdb0aabb671d2f1266bdb07e0bed38 diff --git a/src/socket_client.hxx b/src/socket_client.hxx index 8a379f8..a35bbfd 100644 --- a/src/socket_client.hxx +++ b/src/socket_client.hxx @@ -30,7 +30,8 @@ namespace libt2n */ class socket_client_connection : public client_connection, public socket_handler { - static const int max_retries_default=3; + public: + static const int max_retries_default=3; private: void real_write(const std::string& data) @@ -44,6 +45,9 @@ class socket_client_connection : public client_connection, public socket_handler std::string server; int port; + std::ostream* get_logstream(log_level_values level) + { return client_connection::get_logstream(level); } + public: socket_client_connection(const std::string& _server, int _port, int _max_retries=max_retries_default); socket_client_connection(const std::string& _path, int _max_retries=max_retries_default);