template <class W>
class AsyncWriterInterface
Defined at line 107 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_stream.h
An interface that can be fed a sequence of messages of type
Public Methods
void Write (const W & msg, void * tag)
Request the writing of
with identifying tag
Only one write may be outstanding at any given time. This means that
after calling Write, one must wait to receive
from the completion
queue BEFORE calling Write again.
This is thread-safe with respect to
gRPC doesn't take ownership or a reference to
so it is safe to
to deallocate once Write returns.
Parameters
void Write (const W & msg, grpc::WriteOptions options, void * tag)
Request the writing of
using WriteOptions
with
identifying tag
Only one write may be outstanding at any given time. This means that
after calling Write, one must wait to receive
from the completion
queue BEFORE calling Write again.
WriteOptions
is used to set the write options of this message.
This is thread-safe with respect to
gRPC doesn't take ownership or a reference to
so it is safe to
to deallocate once Write returns.
Parameters
void ~AsyncWriterInterface<W> ()
Defined at line 109 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_stream.h
void WriteLast (const W & msg, grpc::WriteOptions options, void * tag)
Request the writing of
and coalesce it with the writing
of trailing metadata, using WriteOptions
with
identifying tag
For client, WriteLast is equivalent of performing Write and
WritesDone in a single step.
For server, WriteLast buffers the
The writing of
is held
until Finish is called, where
and trailing metadata are coalesced
and write is initiated. 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.
gRPC doesn't take ownership or a reference to
so it is safe to
to deallocate once Write returns.
Parameters
Defined at line 160 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_stream.h