commit | 8106ba617af50f2a325fd6ce01a1a995cbd320a9 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Tue Mar 09 05:19:50 2010 +0000 |
committer | David Reiss <dreiss@apache.org> | Tue Mar 09 05:19:50 2010 +0000 |
tree | 67bf9253e4e6f58119ce830092ef73a1a2fa2b90 | |
parent | 9c22ba41033a3f632df9db1c871cbf844e79824c [diff] [blame] |
cpp: TSocketPool: make it possible to add servers by struct git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920675 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TSocketPool.h b/lib/cpp/src/transport/TSocketPool.h index 8c50669..749116a 100644 --- a/lib/cpp/src/transport/TSocketPool.h +++ b/lib/cpp/src/transport/TSocketPool.h
@@ -113,6 +113,11 @@ void addServer(const std::string& host, int port); /** + * Add a server to the pool + */ + void addServer(boost::shared_ptr<TSocketPoolServer> &server); + + /** * Set list of servers in this pool */ void setServers(const std::vector< boost::shared_ptr<TSocketPoolServer> >& servers);