X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_client.hxx;fp=src%2Fsocket_client.hxx;h=cea491e01346c7ce17c1344990f5b2bf83771634;hp=c103cbb1c293cb4e259ed2540754981a07e3aa57;hb=fb3345ada7ea94225b78994fd50e3de693a2a3d5;hpb=4c3662a0b083759056b93c21e747e5551a8ddfcc diff --git a/src/socket_client.hxx b/src/socket_client.hxx index c103cbb..cea491e 100644 --- a/src/socket_client.hxx +++ b/src/socket_client.hxx @@ -51,6 +51,8 @@ class socket_client_connection : public client_connection, public socket_handler std::string server; int port; + std::string lastErrorMsg; + protected: std::ostream* get_logstream(log_level_values level) @@ -81,6 +83,9 @@ class socket_client_connection : public client_connection, public socket_handler void close(); void reconnect(); + + std::string get_last_error_msg(void) + { return lastErrorMsg; } }; }