|
GRPC C++
1.0.0
|
An interface that yields a sequence of messages of type R. More...
#include <async_stream.h>
Public Member Functions | |
| virtual | ~AsyncReaderInterface () |
| virtual void | Read (R *msg, void *tag)=0 |
| Read a message of type R into msg. More... | |
An interface that yields a sequence of messages of type R.
|
inlinevirtual |
|
pure virtual |
Read a message of type R into msg.
Completion will be notified by tag on the associated completion queue. This is thread-safe with respect to Write or WritesDone methods. It should not be called concurrently with other streaming APIs on the same stream. It is not meaningful to call it concurrently with another Read on the same stream since reads on the same stream are delivered in order.
| [out] | msg | Where to eventually store the read message. |
| [in] | tag | The tag identifying the operation. |
Implemented in grpc::ServerAsyncReaderWriter< W, R >, grpc::ServerAsyncReader< W, R >, grpc::ClientAsyncReaderWriter< W, R >, and grpc::ClientAsyncReader< R >.
1.8.11