Amazon Kinesis Webrtc C SDK
IceAgentStateMachine.h
Go to the documentation of this file.
1 /*******************************************
2 Signaling State Machine internal include file
3 *******************************************/
4 #ifndef __KINESIS_VIDEO_WEBRTC_ICE_STATE_MACHINE__
5 #define __KINESIS_VIDEO_WEBRTC_ICE_STATE_MACHINE__
6 
7 #pragma once
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
25 #define ICE_AGENT_STATE_NONE ((UINT64) 0)
26 #define ICE_AGENT_STATE_NEW ((UINT64) (1 << 0))
27 #define ICE_AGENT_STATE_CHECK_CONNECTION ((UINT64) (1 << 1))
28 #define ICE_AGENT_STATE_CONNECTED ((UINT64) (1 << 2))
29 #define ICE_AGENT_STATE_NOMINATING ((UINT64) (1 << 3))
30 #define ICE_AGENT_STATE_READY ((UINT64) (1 << 4))
31 #define ICE_AGENT_STATE_DISCONNECTED ((UINT64) (1 << 5))
32 #define ICE_AGENT_STATE_FAILED ((UINT64) (1 << 6))
33 
34 #define ICE_AGENT_STATE_NONE_STR (PCHAR) "ICE_AGENT_STATE_NONE"
35 #define ICE_AGENT_STATE_NEW_STR (PCHAR) "ICE_AGENT_STATE_NEW"
36 #define ICE_AGENT_STATE_CHECK_CONNECTION_STR (PCHAR) "ICE_AGENT_STATE_CHECK_CONNECTION"
37 #define ICE_AGENT_STATE_CONNECTED_STR (PCHAR) "ICE_AGENT_STATE_CONNECTED"
38 #define ICE_AGENT_STATE_NOMINATING_STR (PCHAR) "ICE_AGENT_STATE_NOMINATING"
39 #define ICE_AGENT_STATE_READY_STR (PCHAR) "ICE_AGENT_STATE_READY"
40 #define ICE_AGENT_STATE_DISCONNECTED_STR (PCHAR) "ICE_AGENT_STATE_DISCONNECTED"
41 #define ICE_AGENT_STATE_FAILED_STR (PCHAR) "ICE_AGENT_STATE_FAILED"
42 
43 // Whether to step the state machine
47 PCHAR iceAgentStateToString(UINT64);
48 
52 STATUS fromNewIceAgentState(UINT64, PUINT64);
53 STATUS executeNewIceAgentState(UINT64, UINT64);
54 STATUS fromCheckConnectionIceAgentState(UINT64, PUINT64);
55 STATUS executeCheckConnectionIceAgentState(UINT64, UINT64);
56 STATUS fromConnectedIceAgentState(UINT64, PUINT64);
57 STATUS executeConnectedIceAgentState(UINT64, UINT64);
58 STATUS fromNominatingIceAgentState(UINT64, PUINT64);
59 STATUS executeNominatingIceAgentState(UINT64, UINT64);
60 STATUS fromReadyIceAgentState(UINT64, PUINT64);
61 STATUS executeReadyIceAgentState(UINT64, UINT64);
62 STATUS fromDisconnectedIceAgentState(UINT64, PUINT64);
63 STATUS executeDisconnectedIceAgentState(UINT64, UINT64);
64 STATUS fromFailedIceAgentState(UINT64, PUINT64);
65 STATUS executeFailedIceAgentState(UINT64, UINT64);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 #endif /* __KINESIS_VIDEO_WEBRTC_ICE_STATE_MACHINE__ */
STATUS executeReadyIceAgentState(UINT64, UINT64)
Definition: IceAgentStateMachine.c:536
STATUS executeNominatingIceAgentState(UINT64, UINT64)
Definition: IceAgentStateMachine.c:453
STATUS fromDisconnectedIceAgentState(UINT64, PUINT64)
Definition: IceAgentStateMachine.c:597
STATUS stepIceAgentStateMachine(PIceAgent)
Definition: IceAgentStateMachine.c:32
STATUS executeFailedIceAgentState(UINT64, UINT64)
Definition: IceAgentStateMachine.c:696
STATUS executeDisconnectedIceAgentState(UINT64, UINT64)
Definition: IceAgentStateMachine.c:635
STATUS executeCheckConnectionIceAgentState(UINT64, UINT64)
Definition: IceAgentStateMachine.c:281
STATUS executeConnectedIceAgentState(UINT64, UINT64)
Definition: IceAgentStateMachine.c:361
STATUS fromFailedIceAgentState(UINT64, PUINT64)
Definition: IceAgentStateMachine.c:678
STATUS iceAgentStateMachineCheckDisconnection(PIceAgent, PUINT64)
Definition: IceAgentStateMachine.c:109
STATUS acceptIceAgentMachineState(PIceAgent, UINT64)
Definition: IceAgentStateMachine.c:81
STATUS fromCheckConnectionIceAgentState(UINT64, PUINT64)
Definition: IceAgentStateMachine.c:218
STATUS fromNewIceAgentState(UINT64, PUINT64)
Definition: IceAgentStateMachine.c:178
STATUS fromNominatingIceAgentState(UINT64, PUINT64)
Definition: IceAgentStateMachine.c:390
PCHAR iceAgentStateToString(UINT64)
Definition: IceAgentStateMachine.c:142
STATUS executeNewIceAgentState(UINT64, UINT64)
Definition: IceAgentStateMachine.c:198
STATUS fromReadyIceAgentState(UINT64, PUINT64)
Definition: IceAgentStateMachine.c:493
STATUS fromConnectedIceAgentState(UINT64, PUINT64)
Definition: IceAgentStateMachine.c:317
Definition: IceAgent.h:200