GRPC C++  1.24.0
Public Member Functions | Friends
grpc_impl::ServerWriter< W > Class Template Reference

Synchronous (blocking) server-side API for doing for doing a server-streaming RPCs, where the outgoing message stream coming from the server has messages of type W. More...

#include <completion_queue_impl.h>

Public Member Functions

void SendInitialMetadata () override
 See the ServerStreamingInterface.SendInitialMetadata method for semantics. More...
 
bool Write (const W &msg, ::grpc::WriteOptions options) override
 Block to write msg to the stream with WriteOptions options. More...
 
- Public Member Functions inherited from grpc_impl::internal::ServerStreamingInterface
virtual ~ServerStreamingInterface ()
 
- Public Member Functions inherited from grpc_impl::internal::WriterInterface< W >
virtual ~WriterInterface ()
 
bool Write (const W &msg)
 Block to write msg to the stream with default write options. More...
 
void WriteLast (const W &msg, ::grpc::WriteOptions options)
 Write msg and coalesce it with the writing of trailing metadata, using WriteOptions options. More...
 

Friends

template<class ServiceType , class RequestType , class ResponseType >
class ::grpc::internal::ServerStreamingHandler
 

Detailed Description

template<class W>
class grpc_impl::ServerWriter< W >

Synchronous (blocking) server-side API for doing for doing a server-streaming RPCs, where the outgoing message stream coming from the server has messages of type W.

Member Function Documentation

◆ SendInitialMetadata()

template<class W>
void grpc_impl::ServerWriter< W >::SendInitialMetadata ( )
inlineoverridevirtual

See the ServerStreamingInterface.SendInitialMetadata method for semantics.

Note that initial metadata will be affected by the ServerContext associated with this call.

Implements grpc_impl::internal::ServerStreamingInterface.

◆ Write()

template<class W>
bool grpc_impl::ServerWriter< W >::Write ( const W &  msg,
::grpc::WriteOptions  options 
)
inlineoverridevirtual

Block to write msg to the stream with WriteOptions options.

This is thread-safe with respect to ReaderInterface::Read

Parameters
msgThe message to be written to the stream.
optionsThe WriteOptions affecting the write operation.
Returns
true on success, false when the stream has been closed.

Implements grpc_impl::internal::WriterInterface< W >.

Friends And Related Function Documentation

◆ ::grpc::internal::ServerStreamingHandler

template<class W>
template<class ServiceType , class RequestType , class ResponseType >
friend class ::grpc::internal::ServerStreamingHandler
friend

The documentation for this class was generated from the following files: