Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
grpc::ServerWriter< W > Class Template Reference

#include <completion_queue.h>

Public Member Functions

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

Private Member Functions

 ServerWriter (grpc::internal::Call *call, grpc::ServerContext *ctx)
 

Private Attributes

grpc::internal::Call *const call_
 
grpc::ServerContext *const ctx_
 

Friends

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

Detailed Description

template<class W>
class grpc::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.

Definition at line 60 of file include/grpcpp/impl/codegen/completion_queue.h.

Constructor & Destructor Documentation

◆ ServerWriter()

template<class W >
grpc::ServerWriter< W >::ServerWriter ( grpc::internal::Call call,
grpc::ServerContext ctx 
)
inlineprivate

Definition at line 698 of file grpcpp/impl/codegen/sync_stream.h.

Member Function Documentation

◆ SendInitialMetadata()

template<class W >
void grpc::ServerWriter< W >::SendInitialMetadata ( )
inlineoverride

See the ServerStreamingInterface.SendInitialMetadata method for semantics. Note that initial metadata will be affected by the ServerContext associated with this call.

Definition at line 643 of file grpcpp/impl/codegen/sync_stream.h.

◆ Write()

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

Definition at line 663 of file grpcpp/impl/codegen/sync_stream.h.

Friends And Related Function Documentation

◆ internal::ServerStreamingHandler

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

Definition at line 696 of file grpcpp/impl/codegen/sync_stream.h.

Member Data Documentation

◆ call_

template<class W >
grpc::internal::Call* const grpc::ServerWriter< W >::call_
private

Definition at line 692 of file grpcpp/impl/codegen/sync_stream.h.

◆ ctx_

template<class W >
grpc::ServerContext* const grpc::ServerWriter< W >::ctx_
private

Definition at line 693 of file grpcpp/impl/codegen/sync_stream.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:31