// manage a cache of RPC connections.
-// assuming cid is a std::string holding the
+// assuming cid is a string holding the
// host:port of the RPC server you want
// to talk to:
//
class handle {
private:
- hinfo *h;
+ shared_ptr<hinfo> h;
public:
handle(const string & m);
- ~handle();
/* safebind will try to bind with the rpc server on the first call.
* Since bind may block, the caller probably should not hold a mutex
* when calling safebind.
* }
*/
rpcc *safebind();
+
+ void invalidate();
};
void invalidate_handle(const string & m);