AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <EventStreamClient.h>
Public Member Functions | |
ClientContinuation (ClientConnection *connection, ClientContinuationHandler &continuationHandler, Crt::Allocator *allocator) noexcept | |
~ClientContinuation () noexcept | |
std::future< RpcError > | Activate (const Crt::String &operation, const Crt::List< EventStreamHeader > &headers, const Crt::Optional< Crt::ByteBuf > &payload, MessageType messageType, uint32_t messageFlags, OnMessageFlushCallback onMessageFlushCallback) noexcept |
bool | IsClosed () noexcept |
std::future< RpcError > | SendMessage (const Crt::List< EventStreamHeader > &headers, const Crt::Optional< Crt::ByteBuf > &payload, MessageType messageType, uint32_t messageFlags, OnMessageFlushCallback onMessageFlushCallback) noexcept |
Friends | |
class | ClientOperation |
A wrapper for event-stream-rpc client continuation.
|
noexcept |
Create a new continuation.
connection | Connection on which open a new stream. |
continuationHandler | A set of callbacks that will be invoked for continuation events. |
allocator | Allocator to use. |
|
noexcept |
|
noexcept |
Initiate a new client stream. Send new message for the new stream.
operation | Name for the operation to be invoked by the peer endpoint. |
headers | Headers for the eventstream message. |
payload | Payload for the eventstream message. |
messageType | Message type for the message. |
messageFlags | Bitmask of aws_event_stream_rpc_message_flag values. |
onMessageFlushCallback | Callback to be invoked upon the message being flushed to the underlying transport. |
|
noexcept |
Check if the continuation has been closed.
|
noexcept |
Send message on the continuation.
headers | List of additional event stream headers to include on the message. |
payload | Message payload. |
messageType | Message type for the message. |
messageFlags | Bitmask of aws_event_stream_rpc_message_flag values. |
onMessageFlushCallback | Callback to be invoked upon the message being flushed to the underlying transport. |
|
friend |