Class ProducerRPCBackend
-
template<class ServiceType, typename RequestType, typename ResponseType>
class ProducerRPCBackend : public RPCBackend<ServiceType, RequestType, ResponseType>, public IProducerBackendInterface<ResponseType> -
Public Functions
- inline ProducerRPCBackend(RPCBackend::AsyncRPCHandle TargetRPC, std::shared_ptr<ServiceType> Service, std::unique_ptr<ServerCompletionQueue> CQueue)
- inline virtual void SendProtobufMessage(ResponseType *Response) override
-
Send a message to the client.
- Parameters:
-
Msg – [in] The message to send to the client
- inline virtual void Initialize()
-
Perform any setup that happens prior to establishing any external connection.
this could include opening a socket and waiting for a connection.