X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/2546a41ad36fdc9ef6471cb35a1d56930ae1b527..6b5e09540e9392a7015fae1ad3b01b0973600ff2:/handle.h diff --git a/handle.h b/handle.h index a06b156..f4df61a 100644 --- a/handle.h +++ b/handle.h @@ -1,5 +1,5 @@ // 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: // @@ -23,19 +23,16 @@ #ifndef handle_h #define handle_h +#include "types.h" #include "rpc/rpc.h" -#include - -using std::string; class hinfo; class handle { private: - hinfo *h; + shared_ptr 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. @@ -55,6 +52,8 @@ class handle { * } */ rpcc *safebind(); + + void invalidate(); }; void invalidate_handle(const string & m);