THRIFT-756. cpp: Exposing TSocket(int) constructor to public
This patch changes the raw socket handle constructor from protected to public.
Patch: Rajat Goel
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991785 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TSocket.h b/lib/cpp/src/transport/TSocket.h
index 70c167f..0184362 100644
--- a/lib/cpp/src/transport/TSocket.h
+++ b/lib/cpp/src/transport/TSocket.h
@@ -193,13 +193,12 @@
*/
static bool getUseLowMinRto();
- protected:
/**
- * Constructor to create socket from raw UNIX handle. Never called directly
- * but used by the TServerSocket class.
+ * Constructor to create socket from raw UNIX handle.
*/
TSocket(int socket);
+ protected:
/** connect, called by open */
void openConnection(struct addrinfo *res);