/* Copyright (c) 2020 Sogou, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef __RPC_DEFINE_H__ #define __RPC_DEFINE_H__ #if __cplusplus < 201100 #error CPLUSPLUS VERSION required at least C++11. Please use "-std=c++11". #include #endif #include "rpc_server.h" #include "rpc_client.h" namespace srpc { using SRPCServer = RPCServer; using SRPCClient = RPCClient; using SRPCClientTask = SRPCClient::TASK; using SRPCHttpServer = RPCServer; using SRPCHttpClient = RPCClient; using SRPCHttpClientTask = SRPCHttpClient::TASK; using BRPCServer = RPCServer; using BRPCClient = RPCClient; using BRPCClientTask = BRPCClient::TASK; using ThriftServer = RPCServer; using ThriftClient = RPCClient; using ThriftClientTask = ThriftClient::TASK; using ThriftHttpServer = RPCServer; using ThriftHttpClient = RPCClient; using ThriftHttpClientTask = ThriftHttpClient::TASK; using TRPCServer = RPCServer; using TRPCClient = RPCClient; using TRPCClientTask = TRPCClient::TASK; using TRPCHttpServer = RPCServer; using TRPCHttpClient = RPCClient; using TRPCHttpClientTask = TRPCHttpClient::TASK; } // namespace srpc #endif