#include "../Include_i.h"
Macros | |
#define | LOG_CLASS "TurnConnection" |
Functions | |
STATUS | createTurnConnection (PIceServer pTurnServer, TIMER_QUEUE_HANDLE timerQueueHandle, TURN_CONNECTION_DATA_TRANSFER_MODE dataTransferMode, KVS_SOCKET_PROTOCOL protocol, PTurnConnectionCallbacks pTurnConnectionCallbacks, PSocketConnection pTurnSocket, PConnectionListener pConnectionListener, PTurnConnection *ppTurnConnection) |
UINT64 | turnConnectionGetTime (UINT64 customData) |
STATUS | freeTurnConnection (PTurnConnection *ppTurnConnection) |
STATUS | turnConnectionIncomingDataHandler (PTurnConnection pTurnConnection, PBYTE pBuffer, UINT32 bufferLen, PKvsIpAddress pSrc, PKvsIpAddress pDest, PTurnChannelData channelDataList, PUINT32 pChannelDataCount) |
STATUS | turnConnectionHandleStun (PTurnConnection pTurnConnection, PBYTE pBuffer, UINT32 bufferLen) |
STATUS | turnConnectionHandleStunError (PTurnConnection pTurnConnection, PBYTE pBuffer, UINT32 bufferLen) |
STATUS | turnConnectionHandleChannelData (PTurnConnection pTurnConnection, PBYTE pBuffer, UINT32 bufferLen, PTurnChannelData pChannelData, PUINT32 pChannelDataCount, PUINT32 pProcessedDataLen) |
STATUS | turnConnectionHandleChannelDataTcpMode (PTurnConnection pTurnConnection, PBYTE pBuffer, UINT32 bufferLen, PTurnChannelData pChannelData, PUINT32 pTurnChannelDataCount, PUINT32 pProcessedDataLen) |
STATUS | turnConnectionAddPeer (PTurnConnection pTurnConnection, PKvsIpAddress pPeerAddress) |
STATUS | turnConnectionSendData (PTurnConnection pTurnConnection, PBYTE pBuf, UINT32 bufLen, PKvsIpAddress pDestIp) |
STATUS | turnConnectionStart (PTurnConnection pTurnConnection) |
STATUS | turnConnectionRefreshAllocation (PTurnConnection pTurnConnection) |
STATUS | turnConnectionRefreshPermission (PTurnConnection pTurnConnection, PBOOL pNeedRefresh) |
STATUS | turnConnectionFreePreAllocatedPackets (PTurnConnection pTurnConnection) |
STATUS | turnConnectionUpdateNonce (PTurnConnection pTurnConnection) |
STATUS | turnConnectionShutdown (PTurnConnection pTurnConnection, UINT64 waitUntilAllocationFreedTimeout) |
BOOL | turnConnectionIsShutdownComplete (PTurnConnection pTurnConnection) |
BOOL | turnConnectionGetRelayAddress (PTurnConnection pTurnConnection, PKvsIpAddress pKvsIpAddress) |
STATUS | checkTurnPeerConnections (PTurnConnection pTurnConnection) |
STATUS | turnConnectionTimerCallback (UINT32 timerId, UINT64 currentTime, UINT64 customData) |
STATUS | turnConnectionGetLongTermKey (PCHAR username, PCHAR realm, PCHAR password, PBYTE pBuffer, UINT32 bufferLen) |
STATUS | turnConnectionPackageTurnAllocationRequest (PCHAR username, PCHAR realm, PBYTE nonce, UINT16 nonceLen, UINT32 lifetime, PStunPacket *ppStunPacket) |
PTurnPeer | turnConnectionGetPeerWithChannelNumber (PTurnConnection pTurnConnection, UINT16 channelNumber) |
PTurnPeer | turnConnectionGetPeerWithIp (PTurnConnection pTurnConnection, PKvsIpAddress pKvsIpAddress) |
VOID | turnConnectionFatalError (PTurnConnection pTurnConnection, STATUS errorStatus) |
Variables | |
StateMachineState | TURN_CONNECTION_STATE_MACHINE_STATES [] |
UINT32 | TURN_CONNECTION_STATE_MACHINE_STATE_COUNT |
#define LOG_CLASS "TurnConnection" |
Kinesis Video TurnConnection
STATUS checkTurnPeerConnections | ( | PTurnConnection | pTurnConnection | ) |
STATUS createTurnConnection | ( | PIceServer | pTurnServer, |
TIMER_QUEUE_HANDLE | timerQueueHandle, | ||
TURN_CONNECTION_DATA_TRANSFER_MODE | dataTransferMode, | ||
KVS_SOCKET_PROTOCOL | protocol, | ||
PTurnConnectionCallbacks | pTurnConnectionCallbacks, | ||
PSocketConnection | pTurnSocket, | ||
PConnectionListener | pConnectionListener, | ||
PTurnConnection * | ppTurnConnection | ||
) |
STATUS freeTurnConnection | ( | PTurnConnection * | ppTurnConnection | ) |
STATUS turnConnectionAddPeer | ( | PTurnConnection | pTurnConnection, |
PKvsIpAddress | pPeerAddress | ||
) |
VOID turnConnectionFatalError | ( | PTurnConnection | pTurnConnection, |
STATUS | errorStatus | ||
) |
STATUS turnConnectionFreePreAllocatedPackets | ( | PTurnConnection | pTurnConnection | ) |
STATUS turnConnectionGetLongTermKey | ( | PCHAR | username, |
PCHAR | realm, | ||
PCHAR | password, | ||
PBYTE | pBuffer, | ||
UINT32 | bufferLen | ||
) |
PTurnPeer turnConnectionGetPeerWithChannelNumber | ( | PTurnConnection | pTurnConnection, |
UINT16 | channelNumber | ||
) |
PTurnPeer turnConnectionGetPeerWithIp | ( | PTurnConnection | pTurnConnection, |
PKvsIpAddress | pKvsIpAddress | ||
) |
BOOL turnConnectionGetRelayAddress | ( | PTurnConnection | pTurnConnection, |
PKvsIpAddress | pKvsIpAddress | ||
) |
UINT64 turnConnectionGetTime | ( | UINT64 | customData | ) |
STATUS turnConnectionHandleChannelData | ( | PTurnConnection | pTurnConnection, |
PBYTE | pBuffer, | ||
UINT32 | bufferLen, | ||
PTurnChannelData | pChannelData, | ||
PUINT32 | pChannelDataCount, | ||
PUINT32 | pProcessedDataLen | ||
) |
STATUS turnConnectionHandleChannelDataTcpMode | ( | PTurnConnection | pTurnConnection, |
PBYTE | pBuffer, | ||
UINT32 | bufferLen, | ||
PTurnChannelData | pChannelData, | ||
PUINT32 | pTurnChannelDataCount, | ||
PUINT32 | pProcessedDataLen | ||
) |
STATUS turnConnectionHandleStun | ( | PTurnConnection | pTurnConnection, |
PBYTE | pBuffer, | ||
UINT32 | bufferLen | ||
) |
STATUS turnConnectionHandleStunError | ( | PTurnConnection | pTurnConnection, |
PBYTE | pBuffer, | ||
UINT32 | bufferLen | ||
) |
STATUS turnConnectionIncomingDataHandler | ( | PTurnConnection | pTurnConnection, |
PBYTE | pBuffer, | ||
UINT32 | bufferLen, | ||
PKvsIpAddress | pSrc, | ||
PKvsIpAddress | pDest, | ||
PTurnChannelData | channelDataList, | ||
PUINT32 | pChannelDataCount | ||
) |
BOOL turnConnectionIsShutdownComplete | ( | PTurnConnection | pTurnConnection | ) |
STATUS turnConnectionPackageTurnAllocationRequest | ( | PCHAR | username, |
PCHAR | realm, | ||
PBYTE | nonce, | ||
UINT16 | nonceLen, | ||
UINT32 | lifetime, | ||
PStunPacket * | ppStunPacket | ||
) |
STATUS turnConnectionRefreshAllocation | ( | PTurnConnection | pTurnConnection | ) |
STATUS turnConnectionRefreshPermission | ( | PTurnConnection | pTurnConnection, |
PBOOL | pNeedRefresh | ||
) |
STATUS turnConnectionSendData | ( | PTurnConnection | pTurnConnection, |
PBYTE | pBuf, | ||
UINT32 | bufLen, | ||
PKvsIpAddress | pDestIp | ||
) |
STATUS turnConnectionShutdown | ( | PTurnConnection | pTurnConnection, |
UINT64 | waitUntilAllocationFreedTimeout | ||
) |
STATUS turnConnectionStart | ( | PTurnConnection | pTurnConnection | ) |
STATUS turnConnectionTimerCallback | ( | UINT32 | timerId, |
UINT64 | currentTime, | ||
UINT64 | customData | ||
) |
STATUS turnConnectionUpdateNonce | ( | PTurnConnection | pTurnConnection | ) |
|
extern |
|
extern |
Static definitions of the states