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

#include <completion_queue.h>

Public Member Functions

bool NextMessageSize (uint32_t *sz) override
 
bool Read (R *msg) override
 
void SendInitialMetadata () override
 

Private Member Functions

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

Private Attributes

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

Friends

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

Detailed Description

template<class R>
class grpc::ServerReader< R >

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

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

Constructor & Destructor Documentation

◆ ServerReader()

template<class R >
grpc::ServerReader< R >::ServerReader ( grpc::internal::Call call,
grpc::ServerContext ctx 
)
inlineprivate

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

Member Function Documentation

◆ NextMessageSize()

template<class R >
bool grpc::ServerReader< R >::NextMessageSize ( uint32_t sz)
inlineoverride

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

◆ Read()

template<class R >
bool grpc::ServerReader< R >::Read ( R *  msg)
inlineoverride

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

◆ SendInitialMetadata()

template<class R >
void grpc::ServerReader< R >::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 586 of file grpcpp/impl/codegen/sync_stream.h.

Friends And Related Function Documentation

◆ internal::ClientStreamingHandler

template<class R >
template<class ServiceType , class RequestType , class ResponseType >
friend class internal::ClientStreamingHandler
friend

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

Member Data Documentation

◆ call_

template<class R >
grpc::internal::Call* const grpc::ServerReader< R >::call_
private

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

◆ ctx_

template<class R >
ServerContext* const grpc::ServerReader< R >::ctx_
private

Definition at line 619 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