class AsyncGenericService

Defined at line 67 of file ../../third_party/grpc-migrating/src/include/grpcpp/generic/async_generic_service.h

A generic service at the server side accepts all RPC methods and hosts. It is

typically used in proxies. The generic service can be registered to a server

which also has other services.

Sample usage:

ServerBuilder builder;

auto cq = builder.AddCompletionQueue();

AsyncGenericService generic_service;

builder.RegisterAsyncGenericService(

&generic

_service);

auto server = builder.BuildAndStart();

// request a new call

GenericServerContext context;

GenericServerAsyncReaderWriter stream;

generic_service.RequestCall(

&context

,

&stream

, cq.get(), cq.get(), tag);

When tag is retrieved from cq->Next(), context.method() can be used to look

at the method and the RPC can be handled accordingly.

Public Methods

void AsyncGenericService ()

Defined at line 69 of file ../../third_party/grpc-migrating/src/include/grpcpp/generic/async_generic_service.h

void RequestCall (GenericServerContext * ctx, GenericServerAsyncReaderWriter * reader_writer, grpc::CompletionQueue * call_cq, grpc::ServerCompletionQueue * notification_cq, void * tag)

Friends

class Server