Skip to content

Commit

Permalink
Streaming operation intake
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Mar 19, 2024
1 parent 69d00c8 commit cdc1a97
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 60 deletions.
3 changes: 3 additions & 0 deletions include/aws/mqtt/mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ enum aws_mqtt_error {
AWS_ERROR_MQTT_PROTOCOL_ADAPTER_FAILING_REASON_CODE,
AWS_ERROR_MQTT_REQUEST_RESPONSE_CLIENT_SHUT_DOWN,
AWS_ERROR_MQTT_REQUEST_RESPONSE_TIMEOUT,
AWS_ERROR_MQTT_REQUEST_RESPONSE_NO_SUBSCRIPTION_CAPACITY,
AWS_ERROR_MQTT_REQUEST_RESPONSE_SUBSCRIBE_FAILURE,
AWS_ERROR_MQTT_REQUEST_RESPONSE_INTERNAL_ERROR,

AWS_ERROR_END_MQTT_RANGE = AWS_ERROR_ENUM_END_RANGE(AWS_C_MQTT_PACKAGE_ID),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
struct aws_mqtt_request_response_client;
struct aws_mqtt_client_connection;
struct aws_mqtt5_client;
struct aws_mqtt_streaming_operation;

struct aws_mqtt_request_operation_response_path {
struct aws_byte_cursor topic;
Expand Down
9 changes: 9 additions & 0 deletions source/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,15 @@ bool aws_mqtt_is_valid_topic_filter(const struct aws_byte_cursor *topic_filter)
AWS_DEFINE_ERROR_INFO_MQTT(
AWS_ERROR_MQTT_REQUEST_RESPONSE_TIMEOUT,
"Request operation failed due to timeout"),
AWS_DEFINE_ERROR_INFO_MQTT(
AWS_ERROR_MQTT_REQUEST_RESPONSE_NO_SUBSCRIPTION_CAPACITY,
"Streaming request operation failed because there was no space for the subscription"),
AWS_DEFINE_ERROR_INFO_MQTT(
AWS_ERROR_MQTT_REQUEST_RESPONSE_SUBSCRIBE_FAILURE,
"Request operation failed because the associated subscribe failed synchronously"),
AWS_DEFINE_ERROR_INFO_MQTT(
AWS_ERROR_MQTT_REQUEST_RESPONSE_INTERNAL_ERROR,
"Request operation failed due to a non-specific internal error within the client."),

};
/* clang-format on */
Expand Down
Loading

0 comments on commit cdc1a97

Please sign in to comment.