|
GRPC C++
1.0.0
|
An interface that yields a sequence of messages of type R. More...
#include <sync_stream.h>
Public Member Functions | |
| virtual | ~ReaderInterface () |
| virtual bool | Read (R *msg)=0 |
| Blocking read a message and parse to msg. More... | |
An interface that yields a sequence of messages of type R.
|
inlinevirtual |
|
pure virtual |
Blocking read a message and parse to msg.
Returns true on success. This is thread-safe with respect to Write or methods on the same stream. It should not be called concurrently with another Read on the same stream as the order of delivery will not be defined.
| [out] | msg | The read message. |
Implemented in grpc::ServerReaderWriter< W, R >, grpc::ServerReader< R >, grpc::ClientReaderWriter< W, R >, and grpc::ClientReader< R >.
1.8.11