template <class W, class R>
class ServerAsyncReaderWriter
Defined at line 1012 of file ../../third_party/grpc-migrating/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 1015 of file ../../third_party/grpc-migrating/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
Defined at line 1025 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_stream.h
void Read (R * msg, void * tag)
Defined at line 1038 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_stream.h
void Write (const W & msg, void * tag)
Defined at line 1044 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_stream.h
void Write (const W & msg, grpc::WriteOptions options, void * tag)
Defined at line 1052 of file ../../third_party/grpc-migrating/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 1073 of file ../../third_party/grpc-migrating/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 1094 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_stream.h
Friends
template <class Wclass R>
class Server