AWS IoT Device SDK C++ v2  1.34.0
AWS IoT Device SDK C++ v2
Classes | Typedefs | Enumerations
Aws::Eventstreamrpc Namespace Reference

Classes

class  AbstractShapeBase
 
class  ClientConnection
 
class  ClientContinuation
 
class  ClientContinuationHandler
 
class  ClientOperation
 
class  ConnectionConfig
 
class  ConnectionLifecycleHandler
 
class  ContinuationCallbackData
 
class  EventStreamCppToNativeCrtBuilder
 
class  EventStreamHeader
 
class  MessageAmendment
 
struct  OnMessageFlushCallbackContainer
 
class  OperationError
 
class  OperationModelContext
 
class  ResponseRetriever
 
struct  RpcError
 
class  ServiceModel
 
class  StreamResponseHandler
 
class  TaggedResult
 

Typedefs

using HeaderValueType = aws_event_stream_header_value_type
 
using MessageType = aws_event_stream_rpc_message_type
 
using OnMessageFlushCallback = std::function< void(int errorCode)>
 
using ConnectMessageAmender = std::function< const MessageAmendment &(void)>
 
using ExpectedResponseFactory = std::function< Crt::ScopedResource< AbstractShapeBase >(const Crt::StringView &payload, Crt::Allocator *allocator)>
 
using ErrorResponseFactory = std::function< Crt::ScopedResource< OperationError >(const Crt::StringView &payload, Crt::Allocator *allocator)>
 
using LoneResponseRetriever = std::function< ExpectedResponseFactory(const Crt::String &modelName)>
 
using StreamingResponseRetriever = std::function< ExpectedResponseFactory(const Crt::String &modelName)>
 
using ErrorResponseRetriever = std::function< ErrorResponseFactory(const Crt::String &modelName)>
 

Enumerations

enum  EventStreamRpcStatusCode {
  EVENT_STREAM_RPC_SUCCESS = 0, EVENT_STREAM_RPC_NULL_PARAMETER, EVENT_STREAM_RPC_UNINITIALIZED, EVENT_STREAM_RPC_ALLOCATION_ERROR,
  EVENT_STREAM_RPC_CONNECTION_SETUP_FAILED, EVENT_STREAM_RPC_CONNECTION_ACCESS_DENIED, EVENT_STREAM_RPC_CONNECTION_ALREADY_ESTABLISHED, EVENT_STREAM_RPC_CONNECTION_CLOSED,
  EVENT_STREAM_RPC_CONTINUATION_CLOSED, EVENT_STREAM_RPC_UNKNOWN_PROTOCOL_MESSAGE, EVENT_STREAM_RPC_UNMAPPED_DATA, EVENT_STREAM_RPC_UNSUPPORTED_CONTENT_TYPE,
  EVENT_STREAM_RPC_CRT_ERROR
}
 
enum  ResultType { OPERATION_RESPONSE, OPERATION_ERROR, RPC_ERROR }
 

Typedef Documentation

◆ ConnectMessageAmender

using Aws::Eventstreamrpc::ConnectMessageAmender = typedef std::function<const MessageAmendment &(void)>

Allows the application to add headers and change the payload of the CONNECT packet sent out by the client.

Returns
The MessageAmendment for the client to use during an attempt to connect.

◆ ErrorResponseFactory

◆ ErrorResponseRetriever

using Aws::Eventstreamrpc::ErrorResponseRetriever = typedef std::function<ErrorResponseFactory(const Crt::String &modelName)>

◆ ExpectedResponseFactory

◆ HeaderValueType

using Aws::Eventstreamrpc::HeaderValueType = typedef aws_event_stream_header_value_type

◆ LoneResponseRetriever

using Aws::Eventstreamrpc::LoneResponseRetriever = typedef std::function<ExpectedResponseFactory(const Crt::String &modelName)>

◆ MessageType

using Aws::Eventstreamrpc::MessageType = typedef aws_event_stream_rpc_message_type

◆ OnMessageFlushCallback

using Aws::Eventstreamrpc::OnMessageFlushCallback = typedef std::function<void(int errorCode)>

A callback prototype that is called upon flushing a message over the wire.

Parameters
errorCodeA non-zero value if an error occured while attempting to flush the message.

◆ StreamingResponseRetriever

Enumeration Type Documentation

◆ EventStreamRpcStatusCode

Enumerator
EVENT_STREAM_RPC_SUCCESS 
EVENT_STREAM_RPC_NULL_PARAMETER 
EVENT_STREAM_RPC_UNINITIALIZED 
EVENT_STREAM_RPC_ALLOCATION_ERROR 
EVENT_STREAM_RPC_CONNECTION_SETUP_FAILED 
EVENT_STREAM_RPC_CONNECTION_ACCESS_DENIED 
EVENT_STREAM_RPC_CONNECTION_ALREADY_ESTABLISHED 
EVENT_STREAM_RPC_CONNECTION_CLOSED 
EVENT_STREAM_RPC_CONTINUATION_CLOSED 
EVENT_STREAM_RPC_UNKNOWN_PROTOCOL_MESSAGE 
EVENT_STREAM_RPC_UNMAPPED_DATA 
EVENT_STREAM_RPC_UNSUPPORTED_CONTENT_TYPE 
EVENT_STREAM_RPC_CRT_ERROR 

◆ ResultType

Enumerator
OPERATION_RESPONSE 
OPERATION_ERROR 
RPC_ERROR