-- adding hostinfo and time to GlobalOutput

Summary:
- makes thrift errors a lot more useful

Reviewed By: jwang, mcslee

Test Plan: tested with search


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665249 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TSocket.h b/lib/cpp/src/transport/TSocket.h
index 9d8f082..511e4a9 100644
--- a/lib/cpp/src/transport/TSocket.h
+++ b/lib/cpp/src/transport/TSocket.h
@@ -137,6 +137,9 @@
    */
   void setMaxRecvRetries(int maxRecvRetries);
 
+  /** get socket information */
+  std::string getSocketInfo();
+
  protected:
   /**
    * Constructor to create socket from raw UNIX handle. Never called directly
@@ -179,6 +182,7 @@
 
   /** Recv timeout timeval */
   struct timeval recvTimeval_;
+
 };
 
 }}} // facebook::thrift::transport