#include <userver/ugrpc/server/stream.hpp>
Interface to read client's requests.
This class is not thread-safe
If any method throws, further methods must not be called on the same stream.
Definition at line 16 of file stream.hpp.
Public Member Functions | |
virtual bool | Read (Request &request)=0 |
Await and read the next incoming message. | |
|
pure virtual |
Await and read the next incoming message.
request | where to put the request on success |
true
on success, false
on end-of-input ugrpc::server::RpcError | on an RPC error |
Implemented in ugrpc::server::InputStream< Request, Response >, and ugrpc::server::BidirectionalStream< Request, Response >.