16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CONNECTIONSTATUSOBSERVERINTERFACE_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CONNECTIONSTATUSOBSERVERINTERFACE_H_ 24 namespace sdkInterfaces {
88 FAILURE_PROTOCOL_ERROR,
97 SERVER_SIDE_DISCONNECT,
100 SERVER_ENDPOINT_CHANGED
108 engineType{connectEngineType},
109 reason{connectReason},
110 status{connectStatus} {
143 const std::vector<EngineConnectionStatus>& engineStatuses){};
156 stream <<
"DISCONNECTED";
162 stream <<
"CONNECTED";
184 stream <<
"UNRECOVERABLE_ERROR";
187 stream <<
"ACL_CLIENT_REQUEST";
190 stream <<
"ACL_DISABLED";
193 stream <<
"DNS_TIMEDOUT";
196 stream <<
"CONNECTION_TIMEDOUT";
199 stream <<
"CONNECTION_THROTTLED";
202 stream <<
"INVALID_AUTH";
205 stream <<
"PING_TIMEDOUT";
208 stream <<
"WRITE_TIMEDOUT";
211 stream <<
"READ_TIMEDOUT";
214 stream <<
"FAILURE_PROTOCOL_ERROR";
217 stream <<
"INTERNAL_ERROR";
220 stream <<
"SERVER_INTERNAL_ERROR";
223 stream <<
"SERVER_SIDE_DISCONNECT";
226 stream <<
"SERVER_ENDPOINT_CHANGED";
236 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CONNECTIONSTATUSOBSERVERINTERFACE_H_ The connection attempt failed due to excessive load on the server.
virtual void onConnectionStatusChanged(const Status status, const std::vector< EngineConnectionStatus > &engineStatuses)
Definition: ConnectionStatusObserverInterface.h:141
The access credentials provided to ACL were invalid.
ChangedReason
Definition: ConnectionStatusObserverInterface.h:50
The connection attempt failed due to the Connection object being disabled.
std::ostream & operator<<(std::ostream &stream, const AudioInputProcessorObserverInterface::State &state)
Definition: AudioInputProcessorObserverInterface.h:94
EngineConnectionStatus(const int connectEngineType, ChangedReason connectReason, Status connectStatus)
Definition: ConnectionStatusObserverInterface.h:107
ChangedReason reason
Definition: ConnectionStatusObserverInterface.h:115
virtual ~ConnectionStatusObserverInterface()=default
Definition: ConnectionStatusObserverInterface.h:31
ACL is attempting to establish a connection to AVS.
The status changed to due to a successful operation.
Definition: ConnectionStatusObserverInterface.h:103
There was a timeout reading from AVS.
ACL is not connected to AVS.
The server asked the client to reconnect.
The status changed due to an error from which there is no recovery.
HTTP code for internal error by server which didn't fulfill the request.
Definition: HttpResponseCodes.h:45
The server endpoint has changed.
Status status
Definition: ConnectionStatusObserverInterface.h:117
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
There was a timeout writing to AVS.
The non-reason, to be used when no reason is specified (i.e. the 'unset' value).
There was a timeout sending a ping request.
virtual void onConnectionStatusChanged(const Status status, const ChangedReason reason)=0
There was an internal error on the server.
int engineType
Definition: ConnectionStatusObserverInterface.h:113
The connection attempt failed due to timeout.
There was an internal error within ACL.
The connection status changed due to the client interacting with the Connection public api...
There was an underlying protocol error.
Status
Definition: ConnectionStatusObserverInterface.h:36
static const int ENGINE_TYPE_ALEXA_VOICE_SERVICES
Definition: ConnectionStatusObserverInterface.h:26
The connection attempt failed due to DNS resolution timeout.