template <class W>

class WriterInterface

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

An interface that can be fed a sequence of messages of type

Public Methods

bool Write (const W & msg, grpc::WriteOptions options)

Block to write

to the stream with WriteOptions

This is thread-safe with respect to

Parameters

msg The message to be written to the stream.
options The WriteOptions affecting the write operation.

Returns

on success,

when the stream has been closed.

void ~WriterInterface<W> ()

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

bool Write (const W & msg)

Block to write

to the stream with default write options.

This is thread-safe with respect to

Parameters

msg The message to be written to the stream.

Returns

on success,

when the stream has been closed.

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

void WriteLast (const W & msg, grpc::WriteOptions options)

Write

and coalesce it with the writing of trailing metadata, using

WriteOptions

For client, WriteLast is equivalent of performing Write and WritesDone in

a single step.

and trailing metadata are coalesced and sent on wire

by calling this function. For server, WriteLast buffers the

The writing of

is held until the service handler returns,

where

and trailing metadata are coalesced and sent on wire.

Note that WriteLast can only buffer

up to the flow control window

size. If

size is larger than the window size, it will be sent on

wire without buffering.

Parameters

msg [in] The message to be written to the stream.
options [in] The WriteOptions to be used to write this message.

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