template <class RequestType, class ResponseType>
class ServerSplitStreamer
Defined at line 894 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
A class to represent a flow-controlled server-side streaming call.
This is something of a hybrid between server-side and bidi streaming.
This is invoked through a server-side streaming call on the client side,
but the server responds to it as though it were a bidi streaming call that
must first have exactly 1 Read and then any number of Writes.
Public Methods
void SendInitialMetadata ()
Block to send initial metadata to client.
Implicit input parameter:
- the
associated with this call will be used for
sending initial metadata.
Defined at line 901 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
bool NextMessageSize (uint32_t * sz)
Get an upper bound on the request message size from the client.
Defined at line 904 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
bool Read (RequestType * request)
Read a message of type
into
Completion will be notified by
on the associated completion queue.
This is thread-safe with respect to
or
methods. It
should not be called concurrently with other streaming APIs
on the same stream. It is not meaningful to call it concurrently
with another
on the same stream since reads on
the same stream are delivered in order.
Parameters
Defined at line 918 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
bool Write (const ResponseType & response, grpc::WriteOptions options)
Defined at line 934 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h