Thrift HTTP client in C++
Reviewed By: aditya, dweatherford
Test Plan: SMC client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665022 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TSocket.h b/lib/cpp/src/transport/TSocket.h
index 3decb2c..9fbdb20 100644
--- a/lib/cpp/src/transport/TSocket.h
+++ b/lib/cpp/src/transport/TSocket.h
@@ -40,11 +40,10 @@
*/
TSocket(std::string host, int port);
-
/**
* Destroyes the socket object, closing it if necessary.
*/
- ~TSocket();
+ virtual ~TSocket();
/**
* Whether the socket is alive.
@@ -125,8 +124,7 @@
*/
void setSendTimeout(int ms);
-
- private:
+ protected:
/**
* Constructor to create socket from raw UNIX handle. Never called directly
* but used by the TServerSocket class.