X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_client.hxx;h=c103cbb1c293cb4e259ed2540754981a07e3aa57;hp=a7fe64e0a3c649eaa29ed4b3aad212e2090c6458;hb=e1614a6d1d9c022b83c0aa8cdb948bd7dc98ff23;hpb=ffbbf9abeb195a4017c1ede383cc9ab906aa4a0c diff --git a/src/socket_client.hxx b/src/socket_client.hxx index a7fe64e..c103cbb 100644 --- a/src/socket_client.hxx +++ b/src/socket_client.hxx @@ -51,16 +51,20 @@ class socket_client_connection : public client_connection, public socket_handler std::string server; int port; + protected: + std::ostream* get_logstream(log_level_values level) { return client_connection::get_logstream(level); } public: socket_client_connection(int _port, const std::string& _server="127.0.0.1", long long _connect_timeout_usec=connect_timeout_usec_default, - int _max_retries=max_retries_default); + int _max_retries=max_retries_default, + std::ostream *_logstream=NULL, log_level_values _log_level=none); socket_client_connection(const std::string& _path, long long _connect_timeout_usec=connect_timeout_usec_default, - int _max_retries=max_retries_default); + int _max_retries=max_retries_default, + std::ostream *_logstream=NULL, log_level_values _log_level=none); /** @brief read data from the socket and copy it into buffer @param usec_timeout wait until new data is found, max timeout usecs.