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

Macros

#define LOG_CLASS   "TurnConnectionState"
 

Functions

PCHAR turnConnectionGetStateStr (UINT64 state)
 
STATUS stepTurnConnectionStateMachine (PTurnConnection pTurnConnection)
 
STATUS fromNewTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeNewTurnState (UINT64 customData, UINT64 time)
 
STATUS fromCheckSocketConnectionTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeCheckSocketConnectionTurnState (UINT64 customData, UINT64 time)
 
STATUS fromGetCredentialsTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeGetCredentialsTurnState (UINT64 customData, UINT64 time)
 
STATUS fromAllocationTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeAllocationTurnState (UINT64 customData, UINT64 time)
 
STATUS fromCreatePermissionTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeCreatePermissionTurnState (UINT64 customData, UINT64 time)
 
STATUS fromBindChannelTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeBindChannelTurnState (UINT64 customData, UINT64 time)
 
STATUS fromReadyTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeReadyTurnState (UINT64 customData, UINT64 time)
 
STATUS fromCleanUpTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeCleanUpTurnState (UINT64 customData, UINT64 time)
 
STATUS fromFailedTurnState (UINT64 customData, PUINT64 pState)
 
STATUS executeFailedTurnState (UINT64 customData, UINT64 time)
 

Variables

StateMachineState TURN_CONNECTION_STATE_MACHINE_STATES []
 
UINT32 TURN_CONNECTION_STATE_MACHINE_STATE_COUNT = ARRAY_SIZE(TURN_CONNECTION_STATE_MACHINE_STATES)
 

Macro Definition Documentation

◆ LOG_CLASS

#define LOG_CLASS   "TurnConnectionState"

Implementation of a turn connection states machine callbacks

Function Documentation

◆ executeAllocationTurnState()

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

◆ executeBindChannelTurnState()

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

◆ executeCheckSocketConnectionTurnState()

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

◆ executeCleanUpTurnState()

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

◆ executeCreatePermissionTurnState()

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

◆ executeFailedTurnState()

STATUS executeFailedTurnState ( UINT64  customData,
UINT64  time 
)

◆ executeGetCredentialsTurnState()

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

◆ executeNewTurnState()

STATUS executeNewTurnState ( UINT64  customData,
UINT64  time 
)

◆ executeReadyTurnState()

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

◆ fromAllocationTurnState()

STATUS fromAllocationTurnState ( UINT64  customData,
PUINT64  pState 
)

◆ fromBindChannelTurnState()

STATUS fromBindChannelTurnState ( UINT64  customData,
PUINT64  pState 
)

◆ fromCheckSocketConnectionTurnState()

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

◆ fromCleanUpTurnState()

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

◆ fromCreatePermissionTurnState()

STATUS fromCreatePermissionTurnState ( UINT64  customData,
PUINT64  pState 
)

◆ fromFailedTurnState()

STATUS fromFailedTurnState ( UINT64  customData,
PUINT64  pState 
)

◆ fromGetCredentialsTurnState()

STATUS fromGetCredentialsTurnState ( UINT64  customData,
PUINT64  pState 
)

◆ fromNewTurnState()

STATUS fromNewTurnState ( UINT64  customData,
PUINT64  pState 
)

Turn state machine callbacks

◆ fromReadyTurnState()

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

◆ stepTurnConnectionStateMachine()

STATUS stepTurnConnectionStateMachine ( PTurnConnection  pTurnConnection)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ turnConnectionGetStateStr()

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

Variable Documentation

◆ TURN_CONNECTION_STATE_MACHINE_STATE_COUNT

UINT32 TURN_CONNECTION_STATE_MACHINE_STATE_COUNT = ARRAY_SIZE(TURN_CONNECTION_STATE_MACHINE_STATES)

◆ TURN_CONNECTION_STATE_MACHINE_STATES

StateMachineState TURN_CONNECTION_STATE_MACHINE_STATES[]
Initial value:
= {
{ ((UINT64) (1 << 0)) , ((UINT64) (1 << 0)) | ((UINT64) (1 << 7)) , fromNewTurnState, executeNewTurnState, NULL, 0 ,
{ ((UINT64) (1 << 1)) , ((UINT64) (1 << 0)) | ((UINT64) (1 << 1)) , fromCheckSocketConnectionTurnState,
{ ((UINT64) (1 << 2)) , ((UINT64) (1 << 1)) | ((UINT64) (1 << 2)) , fromGetCredentialsTurnState,
{ ((UINT64) (1 << 3)) , ((UINT64) (1 << 3)) | ((UINT64) (1 << 2)) , fromAllocationTurnState, executeAllocationTurnState, NULL,
{ ((UINT64) (1 << 4)) , ((UINT64) (1 << 4)) | ((UINT64) (1 << 3)) | ((UINT64) (1 << 6)) , fromCreatePermissionTurnState,
{ ((UINT64) (1 << 5)) , ((UINT64) (1 << 5)) | ((UINT64) (1 << 4)) , fromBindChannelTurnState, executeBindChannelTurnState, NULL,
{ ((UINT64) (1 << 6)) , ((UINT64) (1 << 6)) | ((UINT64) (1 << 5)) , fromReadyTurnState, executeReadyTurnState, NULL, 0 ,
{ ((UINT64) (1 << 7)) ,
((UINT64) (1 << 7)) | ((UINT64) (1 << 8)) | ((UINT64) (1 << 1)) | ((UINT64) (1 << 2)) | ((UINT64) (1 << 3)) |
((UINT64) (1 << 4)) | ((UINT64) (1 << 5)) | ((UINT64) (1 << 6)) ,
{ ((UINT64) (1 << 8)) ,
((UINT64) (1 << 7)) | ((UINT64) (1 << 8)) | ((UINT64) (1 << 1)) | ((UINT64) (1 << 2)) | ((UINT64) (1 << 3)) |
((UINT64) (1 << 4)) | ((UINT64) (1 << 5)) | ((UINT64) (1 << 6)) ,
}
STATUS fromCheckSocketConnectionTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:162
STATUS executeNewTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:146
STATUS executeCheckSocketConnectionTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:198
STATUS executeBindChannelTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:524
STATUS fromAllocationTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:290
STATUS executeAllocationTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:325
STATUS fromCleanUpTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:618
STATUS fromNewTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:128
STATUS executeGetCredentialsTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:255
STATUS fromGetCredentialsTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:218
STATUS fromFailedTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:693
STATUS executeCleanUpTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:665
STATUS fromReadyTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:543
STATUS executeFailedTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:729
STATUS executeCreatePermissionTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:416
STATUS executeReadyTurnState(UINT64 customData, UINT64 time)
Definition: TurnConnectionStateMachine.c:600
STATUS fromBindChannelTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:482
STATUS fromCreatePermissionTurnState(UINT64 customData, PUINT64 pState)
Definition: TurnConnectionStateMachine.c:359
#define STATUS_TURN_INVALID_STATE
Definition: Include.h:257

Static definitions of the states