#include <sync_stream.h>
template<class W , class R >
template<class W , class R >
template<class W , class R >
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.
- Parameters
-
| [out] | msg | The read message. |
- Returns
- false when there will be no more incoming messages, either because the other side has called WritesDone() or the stream has failed (or been cancelled).
Implements grpc::ReaderInterface< R >.
template<class W , class R >
template<class W , class R >
Blocking write msg to the stream with WriteOptions options.
This is thread-safe with respect to Read
- Parameters
-
| msg | The message to be written to the stream. |
| options | The WriteOptions affecting the write operation. |
- Returns
- true on success, false when the stream has been closed.
Implements grpc::WriterInterface< W >.
The documentation for this class was generated from the following file: