Adding a few integration points to the C++ TSocketPool.
authorDavid Reiss <dreiss@apache.org>
Sun, 2 Mar 2008 00:25:58 +0000 (00:25 +0000)
committerDavid Reiss <dreiss@apache.org>
Sun, 2 Mar 2008 00:25:58 +0000 (00:25 +0000)
commit907ad76c2db1ae834ea8d09a0aca86da008c261f
tree6f11dc1f53508763c46c0f8a39d2f52ed407d406
parent2c9824c5bdd3d9aefa0c1edb4538c996e4d513dd
Adding a few integration points to the C++ TSocketPool.

- Adding ability to use a vector of TSocketPoolServers to construct a TSocketPool
- Ability to get back the list of TSocketPoolServers

This is especially useful in multithreaded client code that
will just keep around the list of servers, and create the pool
on every request. Since TSocketPool updates the failure stuff,
we need a way to get back the updated TSocketPoolServers

Reviewed By: aditya

Test Plan: just compiling the code

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665537 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TSocketPool.cpp
lib/cpp/src/transport/TSocketPool.h