template <class RequestType, class ResponseType>

class ServerUnaryStreamer

Defined at line 828 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h

A class to represent a flow-controlled unary call. This is something

of a hybrid between conventional unary and streaming. This is invoked

through a unary call on the client side, but the server responds to it

as though it were a single-ping-pong streaming call. The server can use

the

method to determine an upper-bound on the size of

the message. A key difference relative to streaming: ServerUnaryStreamer

must have exactly 1 Read and exactly 1 Write, in that order, to function

correctly. Otherwise, the RPC is in error.

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 835 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 838 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

msg [out] Where to eventually store the read message.
tag [in] The tag identifying the operation.

Defined at line 852 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h

bool Write (const ResponseType & response, grpc::WriteOptions options)

Defined at line 868 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h