Amazon Kinesis Webrtc C SDK
Loading...
Searching...
No Matches
TurnConnectionStateMachine.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TURN_STATE_NONE   ((UINT64) 0)
#define TURN_STATE_NEW   ((UINT64) (1 << 0))
#define TURN_STATE_CHECK_SOCKET_CONNECTION   ((UINT64) (1 << 1))
#define TURN_STATE_GET_CREDENTIALS   ((UINT64) (1 << 2))
#define TURN_STATE_ALLOCATION   ((UINT64) (1 << 3))
#define TURN_STATE_CREATE_PERMISSION   ((UINT64) (1 << 4))
#define TURN_STATE_BIND_CHANNEL   ((UINT64) (1 << 5))
#define TURN_STATE_READY   ((UINT64) (1 << 6))
#define TURN_STATE_CLEAN_UP   ((UINT64) (1 << 7))
#define TURN_STATE_FAILED   ((UINT64) (1 << 8))
#define TURN_STATE_NONE_STR   (PCHAR) "TURN_STATE_NONE"
#define TURN_STATE_NEW_STR   (PCHAR) "TURN_STATE_NEW"
#define TURN_STATE_CHECK_SOCKET_CONNECTION_STR   (PCHAR) "TURN_STATE_CHECK_SOCKET_CONNECTION"
#define TURN_STATE_GET_CREDENTIALS_STR   (PCHAR) "TURN_STATE_GET_CREDENTIALS"
#define TURN_STATE_ALLOCATION_STR   (PCHAR) "TURN_STATE_ALLOCATION"
#define TURN_STATE_CREATE_PERMISSION_STR   (PCHAR) "TURN_STATE_CREATE_PERMISSION"
#define TURN_STATE_BIND_CHANNEL_STR   (PCHAR) "TURN_STATE_BIND_CHANNEL"
#define TURN_STATE_READY_STR   (PCHAR) "TURN_STATE_READY"
#define TURN_STATE_CLEAN_UP_STR   (PCHAR) "TURN_STATE_CLEAN_UP"
#define TURN_STATE_FAILED_STR   (PCHAR) "TURN_STATE_FAILED"
#define TURN_STATE_UNKNOWN_STR   (PCHAR) "TURN_STATE_UNKNOWN"

Functions

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

Macro Definition Documentation

◆ TURN_STATE_ALLOCATION

#define TURN_STATE_ALLOCATION   ((UINT64) (1 << 3))

◆ TURN_STATE_ALLOCATION_STR

#define TURN_STATE_ALLOCATION_STR   (PCHAR) "TURN_STATE_ALLOCATION"

◆ TURN_STATE_BIND_CHANNEL

#define TURN_STATE_BIND_CHANNEL   ((UINT64) (1 << 5))

◆ TURN_STATE_BIND_CHANNEL_STR

#define TURN_STATE_BIND_CHANNEL_STR   (PCHAR) "TURN_STATE_BIND_CHANNEL"

◆ TURN_STATE_CHECK_SOCKET_CONNECTION

#define TURN_STATE_CHECK_SOCKET_CONNECTION   ((UINT64) (1 << 1))

◆ TURN_STATE_CHECK_SOCKET_CONNECTION_STR

#define TURN_STATE_CHECK_SOCKET_CONNECTION_STR   (PCHAR) "TURN_STATE_CHECK_SOCKET_CONNECTION"

◆ TURN_STATE_CLEAN_UP

#define TURN_STATE_CLEAN_UP   ((UINT64) (1 << 7))

◆ TURN_STATE_CLEAN_UP_STR

#define TURN_STATE_CLEAN_UP_STR   (PCHAR) "TURN_STATE_CLEAN_UP"

◆ TURN_STATE_CREATE_PERMISSION

#define TURN_STATE_CREATE_PERMISSION   ((UINT64) (1 << 4))

◆ TURN_STATE_CREATE_PERMISSION_STR

#define TURN_STATE_CREATE_PERMISSION_STR   (PCHAR) "TURN_STATE_CREATE_PERMISSION"

◆ TURN_STATE_FAILED

#define TURN_STATE_FAILED   ((UINT64) (1 << 8))

◆ TURN_STATE_FAILED_STR

#define TURN_STATE_FAILED_STR   (PCHAR) "TURN_STATE_FAILED"

◆ TURN_STATE_GET_CREDENTIALS

#define TURN_STATE_GET_CREDENTIALS   ((UINT64) (1 << 2))

◆ TURN_STATE_GET_CREDENTIALS_STR

#define TURN_STATE_GET_CREDENTIALS_STR   (PCHAR) "TURN_STATE_GET_CREDENTIALS"

◆ TURN_STATE_NEW

#define TURN_STATE_NEW   ((UINT64) (1 << 0))

◆ TURN_STATE_NEW_STR

#define TURN_STATE_NEW_STR   (PCHAR) "TURN_STATE_NEW"

◆ TURN_STATE_NONE

#define TURN_STATE_NONE   ((UINT64) 0)

TURN states definitions

TURN_STATE_NONE: Dummy state TURN_STATE_NEW: State at creation TURN_STATE_CHECK_SOCKET_CONNECTION: TURN_STATE_GET_CREDENTIALS: TURN_STATE_ALLOCATION: TURN_STATE_CREATE_PERMISSION: TURN_STATE_BIND_CHANNEL: TURN_STATE_READY: TURN_STATE_CLEAN_UP: TURN_STATE_FAILED:

◆ TURN_STATE_NONE_STR

#define TURN_STATE_NONE_STR   (PCHAR) "TURN_STATE_NONE"

◆ TURN_STATE_READY

#define TURN_STATE_READY   ((UINT64) (1 << 6))

◆ TURN_STATE_READY_STR

#define TURN_STATE_READY_STR   (PCHAR) "TURN_STATE_READY"

◆ TURN_STATE_UNKNOWN_STR

#define TURN_STATE_UNKNOWN_STR   (PCHAR) "TURN_STATE_UNKNOWN"

Function Documentation

◆ acceptTurnMachineState()

STATUS acceptTurnMachineState ( PTurnConnection ,
UINT64  )

◆ 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:

◆ turnStateGetStateStr()

PCHAR turnStateGetStateStr ( UINT64 state)