template <class W, class R>

class ServerAsyncReaderWriter

Defined at line 1028 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

Async server-side API for doing bidirectional streaming RPCs,

where the incoming message stream coming from the client has messages of

type

and the outgoing message stream coming from the server has

messages of type

Public Methods

void ServerAsyncReaderWriter<W, R> (grpc::ServerContext * ctx)

Defined at line 1031 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

void SendInitialMetadata (void * tag)

See

for semantics.

Implicit input parameter:

- The initial metadata that will be sent to the client from this op will

be taken from the

associated with the call.

Parameters

tag [in] Tag identifying this request.

Defined at line 1041 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

void Read (R * msg, void * tag)

Defined at line 1054 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

void Write (const W & msg, void * tag)

Defined at line 1060 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

void Write (const W & msg, grpc::WriteOptions options, void * tag)

Defined at line 1068 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

void WriteAndFinish (const W & msg, grpc::WriteOptions options, const grpc::Status & status, void * tag)

See the

method for semantics.

Implicit input parameter:

- the

associated with this call is used

for sending trailing (and initial) metadata to the client.

Note:

must have an OK code.

gRPC doesn't take ownership or a reference to

and

so it

is safe to deallocate once WriteAndFinish returns.

Defined at line 1090 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

void Finish (const grpc::Status & status, void * tag)

See the

method for semantics.

Implicit input parameter:

- the

associated with this call is used for sending

trailing (and initial if not already sent) metadata to the client.

Note: there are no restrictions are the code of

it may be non-OK

gRPC doesn't take ownership or a reference to

so it is safe to

to deallocate once Finish returns.

Defined at line 1112 of file ../../third_party/grpc/src/include/grpcpp/support/async_stream.h

Friends

template <class Wclass R>
class Server