RpcController.cc 598 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #include "Rpc/RpcController.h"
  2. namespace Egametang {
  3. RpcController::RpcController()
  4. {
  5. }
  6. RpcController::~RpcController()
  7. {
  8. }
  9. void RpcController::Reset()
  10. {
  11. failed = false;
  12. reason = "";
  13. canceled = false;
  14. }
  15. bool RpcController::Failed() const
  16. {
  17. return failed;
  18. }
  19. std::string RpcController::ErrorText() const
  20. {
  21. return reason;
  22. }
  23. void RpcController::StartCancel()
  24. {
  25. }
  26. void RpcController::SetFailed(const std::string& reason)
  27. {
  28. }
  29. bool RpcController::IsCanceled() const
  30. {
  31. return canceled;
  32. }
  33. void RpcController::NotifyOnCancel(google::protobuf::Closure *callback)
  34. {
  35. }
  36. } // namespace Egametang