call_rpc.h 228 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <rpcdb.h>
  3. #include <string>
  4. using std::string;
  5. class call_rpc {
  6. private:
  7. CLIENT *clnt;
  8. public:
  9. call_rpc();
  10. ~call_rpc();
  11. void init(char *hostname);
  12. response *get_response(request req);
  13. };