Amazon Kinesis Webrtc C SDK
Loading...
Searching...
No Matches
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 ,
0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((UINT64) (1 << 1)) , ((UINT64) (1 << 0)) | ((UINT64) (1 << 1)) , fromCheckSocketConnectionTurnState,
executeCheckSocketConnectionTurnState, NULL, 0 , 0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((UINT64) (1 << 2)) , ((UINT64) (1 << 1)) | ((UINT64) (1 << 2)) , fromGetCredentialsTurnState,
executeGetCredentialsTurnState, NULL, 0 , 0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((UINT64) (1 << 3)) , ((UINT64) (1 << 3)) | ((UINT64) (1 << 2)) , fromAllocationTurnState, executeAllocationTurnState, NULL,
0 , 0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((UINT64) (1 << 4)) , ((UINT64) (1 << 4)) | ((UINT64) (1 << 3)) | ((UINT64) (1 << 6)) , fromCreatePermissionTurnState,
executeCreatePermissionTurnState, NULL, 0 , 0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((UINT64) (1 << 5)) , ((UINT64) (1 << 5)) | ((UINT64) (1 << 4)) , fromBindChannelTurnState, executeBindChannelTurnState, NULL,
0 , 0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((UINT64) (1 << 6)) , ((UINT64) (1 << 6)) | ((UINT64) (1 << 5)) , fromReadyTurnState, executeReadyTurnState, NULL, 0 ,
0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((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)) ,
fromCleanUpTurnState, executeCleanUpTurnState, NULL, 0 , 0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
{ ((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)) ,
fromFailedTurnState, executeFailedTurnState, NULL, 0 , 0x55000000 + 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x01000000+ 0x0000002b},
}
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:542
STATUS fromAllocationTurnState(UINT64 customData, PUINT64 pState)
Definition TurnConnectionStateMachine.c:292
STATUS executeAllocationTurnState(UINT64 customData, UINT64 time)
Definition TurnConnectionStateMachine.c:327
STATUS fromCleanUpTurnState(UINT64 customData, PUINT64 pState)
Definition TurnConnectionStateMachine.c:636
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:712
STATUS executeCleanUpTurnState(UINT64 customData, UINT64 time)
Definition TurnConnectionStateMachine.c:683
STATUS fromReadyTurnState(UINT64 customData, PUINT64 pState)
Definition TurnConnectionStateMachine.c:561
STATUS executeFailedTurnState(UINT64 customData, UINT64 time)
Definition TurnConnectionStateMachine.c:748
STATUS executeCreatePermissionTurnState(UINT64 customData, UINT64 time)
Definition TurnConnectionStateMachine.c:432
STATUS executeReadyTurnState(UINT64 customData, UINT64 time)
Definition TurnConnectionStateMachine.c:618
STATUS fromBindChannelTurnState(UINT64 customData, PUINT64 pState)
Definition TurnConnectionStateMachine.c:498
STATUS fromCreatePermissionTurnState(UINT64 customData, PUINT64 pState)
Definition TurnConnectionStateMachine.c:373

Static definitions of the states