AWS IoT Device SDK C++ v2: Aws::Eventstreamrpc::StreamResponseHandler Class Reference

AWS IoT Device SDK C++ v2 1.14.0 AWS IoT Device SDK C++ v2

Public Member Functions | Protected Member Functions | Friends | List of all members
Aws::Eventstreamrpc::StreamResponseHandler Class Reference

`#include <EventStreamClient.h>`

Inheritance diagram for Aws::Eventstreamrpc::StreamResponseHandler:

## Public Member Functions
virtual void | OnStreamClosed ()

## Protected Member Functions
virtual void | OnStreamEvent (Crt::ScopedResource< AbstractShapeBase > response)
virtual bool | OnStreamError (Crt::ScopedResource< OperationError > operationError, RpcError rpcError)

## Friends
class | ClientOperation

## Detailed Description

Base class for all operation stream handlers. For operations with a streaming response (0+ messages that may arrive after the initial response).

## Member Function Documentation

## ◆ OnStreamClosed()

void Aws::Eventstreamrpc::StreamResponseHandler::OnStreamClosed | ( |  | ) |
| virtual

Invoked when stream is closed, so no more messages will be received.

## ◆ OnStreamError()

bool Aws::Eventstreamrpc::StreamResponseHandler::OnStreamError | ( | Crt::ScopedResource< OperationError > | operationError,
|  | RpcError | rpcError
| ) |  |
| protectedvirtual

Invoked when a message is received on this continuation but results in an error.

This callback can return true so that the stream is closed afterwards.

## ◆ OnStreamEvent()

void Aws::Eventstreamrpc::StreamResponseHandler::OnStreamEvent | ( | Crt::ScopedResource< AbstractShapeBase > | response | ) |
| protectedvirtual

Invoked when a message is received on this continuation.

## Friends And Related Function Documentation

## ◆ ClientOperation

friend class ClientOperation
| friend

The documentation for this class was generated from the following files:

- eventstream_rpc/include/aws/eventstreamrpc/EventStreamClient.h
- eventstream_rpc/source/EventStreamClient.cpp