RpcController.cc 609 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include "Net/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 string & reason)
  27. {
  28. }
  29. bool RpcController::IsCanceled() const
  30. {
  31. }
  32. void RpcController::NotifyOnCancel(Closure *callback)
  33. {
  34. }
  35. } // namespace Egametang