Molybden API
Loading...
Searching...
No Matches
callback.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_RPC_CALLBACK_HPP
6#define MOLYBDEN_RPC_CALLBACK_HPP
7
8namespace google {
9namespace protobuf {
10class Message;
11}
12} // namespace google
13
14namespace rpc::internal {
15
16class Callback {
17 public:
18 virtual ~Callback() = default;
19
20 virtual void send(google::protobuf::Message* message) = 0;
21
22 virtual void fail() = 0;
23};
24} // namespace rpc::internal
25#endif // MOLYBDEN_RPC_CALLBACK_HPP