Amazon Kinesis Webrtc C SDK
IceAgentStateMachine.c File Reference
#include "../Include_i.h"
Include dependency graph for IceAgentStateMachine.c:

Macros

#define LOG_CLASS   "IceAgentState"
 

Functions

STATUS stepIceAgentStateMachine (PIceAgent pIceAgent)
 
STATUS acceptIceAgentMachineState (PIceAgent pIceAgent, UINT64 state)
 
STATUS iceAgentStateMachineCheckDisconnection (PIceAgent pIceAgent, PUINT64 pNextState)
 
PCHAR iceAgentStateToString (UINT64 state)
 
STATUS fromNewIceAgentState (UINT64 customData, PUINT64 pState)
 
STATUS executeNewIceAgentState (UINT64 customData, UINT64 time)
 
STATUS fromCheckConnectionIceAgentState (UINT64 customData, PUINT64 pState)
 
STATUS executeCheckConnectionIceAgentState (UINT64 customData, UINT64 time)
 
STATUS fromConnectedIceAgentState (UINT64 customData, PUINT64 pState)
 
STATUS executeConnectedIceAgentState (UINT64 customData, UINT64 time)
 
STATUS fromNominatingIceAgentState (UINT64 customData, PUINT64 pState)
 
STATUS executeNominatingIceAgentState (UINT64 customData, UINT64 time)
 
STATUS fromReadyIceAgentState (UINT64 customData, PUINT64 pState)
 
STATUS executeReadyIceAgentState (UINT64 customData, UINT64 time)
 
STATUS fromDisconnectedIceAgentState (UINT64 customData, PUINT64 pState)
 
STATUS executeDisconnectedIceAgentState (UINT64 customData, UINT64 time)
 
STATUS fromFailedIceAgentState (UINT64 customData, PUINT64 pState)
 
STATUS executeFailedIceAgentState (UINT64 customData, UINT64 time)
 

Variables

StateMachineState ICE_AGENT_STATE_MACHINE_STATES []
 
UINT32 ICE_AGENT_STATE_MACHINE_STATE_COUNT = ARRAY_SIZE(ICE_AGENT_STATE_MACHINE_STATES)
 

Macro Definition Documentation

◆ LOG_CLASS

#define LOG_CLASS   "IceAgentState"

Implementation of a ice agent states machine callbacks

Function Documentation

◆ acceptIceAgentMachineState()

STATUS acceptIceAgentMachineState ( PIceAgent  pIceAgent,
UINT64  state 
)

◆ executeCheckConnectionIceAgentState()

STATUS executeCheckConnectionIceAgentState ( UINT64  customData,
UINT64  time 
)
Here is the call graph for this function:

◆ executeConnectedIceAgentState()

STATUS executeConnectedIceAgentState ( UINT64  customData,
UINT64  time 
)
Here is the call graph for this function:

◆ executeDisconnectedIceAgentState()

STATUS executeDisconnectedIceAgentState ( UINT64  customData,
UINT64  time 
)
Here is the call graph for this function:

◆ executeFailedIceAgentState()

STATUS executeFailedIceAgentState ( UINT64  customData,
UINT64  time 
)

◆ executeNewIceAgentState()

STATUS executeNewIceAgentState ( UINT64  customData,
UINT64  time 
)

◆ executeNominatingIceAgentState()

STATUS executeNominatingIceAgentState ( UINT64  customData,
UINT64  time 
)
Here is the call graph for this function:

◆ executeReadyIceAgentState()

STATUS executeReadyIceAgentState ( UINT64  customData,
UINT64  time 
)
Here is the call graph for this function:

◆ fromCheckConnectionIceAgentState()

STATUS fromCheckConnectionIceAgentState ( UINT64  customData,
PUINT64  pState 
)

◆ fromConnectedIceAgentState()

STATUS fromConnectedIceAgentState ( UINT64  customData,
PUINT64  pState 
)

◆ fromDisconnectedIceAgentState()

STATUS fromDisconnectedIceAgentState ( UINT64  customData,
PUINT64  pState 
)

◆ fromFailedIceAgentState()

STATUS fromFailedIceAgentState ( UINT64  customData,
PUINT64  pState 
)

◆ fromNewIceAgentState()

STATUS fromNewIceAgentState ( UINT64  customData,
PUINT64  pState 
)

Ice agent state machine callbacks

◆ fromNominatingIceAgentState()

STATUS fromNominatingIceAgentState ( UINT64  customData,
PUINT64  pState 
)

◆ fromReadyIceAgentState()

STATUS fromReadyIceAgentState ( UINT64  customData,
PUINT64  pState 
)
Here is the call graph for this function:

◆ iceAgentStateMachineCheckDisconnection()

STATUS iceAgentStateMachineCheckDisconnection ( PIceAgent  pIceAgent,
PUINT64  pNextState 
)
Here is the caller graph for this function:

◆ iceAgentStateToString()

PCHAR iceAgentStateToString ( UINT64  state)
Here is the caller graph for this function:

◆ stepIceAgentStateMachine()

STATUS stepIceAgentStateMachine ( PIceAgent  pIceAgent)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ICE_AGENT_STATE_MACHINE_STATE_COUNT

UINT32 ICE_AGENT_STATE_MACHINE_STATE_COUNT = ARRAY_SIZE(ICE_AGENT_STATE_MACHINE_STATES)

◆ ICE_AGENT_STATE_MACHINE_STATES

StateMachineState ICE_AGENT_STATE_MACHINE_STATES[]
Initial value:
= {
{ ((UINT64) (1 << 0)) , ((UINT64) 0) | ((UINT64) (1 << 0)) , fromNewIceAgentState, executeNewIceAgentState, NULL,
{ ((UINT64) (1 << 1)) , ((UINT64) (1 << 0)) | ((UINT64) (1 << 1)) , fromCheckConnectionIceAgentState,
{ ((UINT64) (1 << 2)) , ((UINT64) (1 << 1)) | ((UINT64) (1 << 2)) , fromConnectedIceAgentState,
{ ((UINT64) (1 << 3)) , ((UINT64) (1 << 2)) | ((UINT64) (1 << 3)) , fromNominatingIceAgentState, executeNominatingIceAgentState,
{ ((UINT64) (1 << 4)) , ((UINT64) (1 << 2)) | ((UINT64) (1 << 3)) | ((UINT64) (1 << 4)) | ((UINT64) (1 << 5)) ,
{ ((UINT64) (1 << 5)) ,
((UINT64) (1 << 1)) | ((UINT64) (1 << 2)) | ((UINT64) (1 << 3)) | ((UINT64) (1 << 4)) | ((UINT64) (1 << 5)) ,
{ ((UINT64) (1 << 6)) ,
((UINT64) (1 << 1)) | ((UINT64) (1 << 2)) | ((UINT64) (1 << 3)) | ((UINT64) (1 << 4)) |
((UINT64) (1 << 5)) | ((UINT64) (1 << 6)) ,
}
STATUS executeDisconnectedIceAgentState(UINT64 customData, UINT64 time)
Definition: IceAgentStateMachine.c:635
STATUS fromConnectedIceAgentState(UINT64 customData, PUINT64 pState)
Definition: IceAgentStateMachine.c:317
STATUS fromNewIceAgentState(UINT64 customData, PUINT64 pState)
Definition: IceAgentStateMachine.c:178
STATUS executeNominatingIceAgentState(UINT64 customData, UINT64 time)
Definition: IceAgentStateMachine.c:453
STATUS executeCheckConnectionIceAgentState(UINT64 customData, UINT64 time)
Definition: IceAgentStateMachine.c:281
STATUS fromReadyIceAgentState(UINT64 customData, PUINT64 pState)
Definition: IceAgentStateMachine.c:493
STATUS executeFailedIceAgentState(UINT64 customData, UINT64 time)
Definition: IceAgentStateMachine.c:696
STATUS fromNominatingIceAgentState(UINT64 customData, PUINT64 pState)
Definition: IceAgentStateMachine.c:390
STATUS executeNewIceAgentState(UINT64 customData, UINT64 time)
Definition: IceAgentStateMachine.c:198
STATUS executeReadyIceAgentState(UINT64 customData, UINT64 time)
Definition: IceAgentStateMachine.c:536
STATUS fromDisconnectedIceAgentState(UINT64 customData, PUINT64 pState)
Definition: IceAgentStateMachine.c:597
STATUS executeConnectedIceAgentState(UINT64 customData, UINT64 time)
Definition: IceAgentStateMachine.c:361
STATUS fromCheckConnectionIceAgentState(UINT64 customData, PUINT64 pState)
Definition: IceAgentStateMachine.c:218
STATUS fromFailedIceAgentState(UINT64 customData, PUINT64 pState)
Definition: IceAgentStateMachine.c:678
#define STATUS_ICE_INVALID_STATE
Definition: Include.h:242

Static definitions of the states