Go to the source code of this file.
|
STATUS | createTurnConnection (PIceServer, TIMER_QUEUE_HANDLE, TURN_CONNECTION_DATA_TRANSFER_MODE, KVS_SOCKET_PROTOCOL, PTurnConnectionCallbacks, PSocketConnection, PConnectionListener, PTurnConnection *) |
|
STATUS | freeTurnConnection (PTurnConnection *) |
|
STATUS | turnConnectionAddPeer (PTurnConnection, PKvsIpAddress) |
|
STATUS | turnConnectionSendData (PTurnConnection, PBYTE, UINT32, PKvsIpAddress) |
|
STATUS | turnConnectionStart (PTurnConnection) |
|
STATUS | turnConnectionShutdown (PTurnConnection, UINT64) |
|
BOOL | turnConnectionIsShutdownComplete (PTurnConnection) |
|
BOOL | turnConnectionGetRelayAddress (PTurnConnection, PKvsIpAddress) |
|
STATUS | turnConnectionRefreshAllocation (PTurnConnection) |
|
STATUS | turnConnectionRefreshPermission (PTurnConnection, PBOOL) |
|
STATUS | turnConnectionFreePreAllocatedPackets (PTurnConnection) |
|
UINT64 | turnConnectionGetTime (UINT64) |
|
STATUS | turnConnectionUpdateNonce (PTurnConnection) |
|
STATUS | turnConnectionTimerCallback (UINT32, UINT64, UINT64) |
|
STATUS | turnConnectionGetLongTermKey (PCHAR, PCHAR, PCHAR, PBYTE, UINT32) |
|
STATUS | turnConnectionPackageTurnAllocationRequest (PCHAR, PCHAR, PBYTE, UINT16, UINT32, PStunPacket *) |
|
STATUS | turnConnectionIncomingDataHandler (PTurnConnection, PBYTE, UINT32, PKvsIpAddress, PKvsIpAddress, PTurnChannelData, PUINT32) |
|
STATUS | turnConnectionHandleStun (PTurnConnection, PBYTE, UINT32) |
|
STATUS | turnConnectionHandleStunError (PTurnConnection, PBYTE, UINT32) |
|
STATUS | turnConnectionHandleChannelData (PTurnConnection, PBYTE, UINT32, PTurnChannelData, PUINT32, PUINT32) |
|
STATUS | turnConnectionHandleChannelDataTcpMode (PTurnConnection, PBYTE, UINT32, PTurnChannelData, PUINT32, PUINT32) |
|
VOID | turnConnectionFatalError (PTurnConnection, STATUS) |
|
PTurnPeer | turnConnectionGetPeerWithChannelNumber (PTurnConnection, UINT16) |
|
PTurnPeer | turnConnectionGetPeerWithIp (PTurnConnection, PKvsIpAddress) |
|
STATUS | checkTurnPeerConnections (PTurnConnection) |
|
◆ DEFAULT_TURN_ALLOCATION_LIFETIME_SECONDS
#define DEFAULT_TURN_ALLOCATION_LIFETIME_SECONDS 600 |
◆ DEFAULT_TURN_ALLOCATION_REFRESH_GRACE_PERIOD
#define DEFAULT_TURN_ALLOCATION_REFRESH_GRACE_PERIOD (30 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_ALLOCATION_TIMEOUT
#define DEFAULT_TURN_ALLOCATION_TIMEOUT (5 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_BIND_CHANNEL_TIMEOUT
#define DEFAULT_TURN_BIND_CHANNEL_TIMEOUT (5 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_CHANNEL_DATA_BUFFER_SIZE
#define DEFAULT_TURN_CHANNEL_DATA_BUFFER_SIZE 512 |
◆ DEFAULT_TURN_CLEAN_UP_TIMEOUT
#define DEFAULT_TURN_CLEAN_UP_TIMEOUT (10 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_CREATE_PERMISSION_TIMEOUT
#define DEFAULT_TURN_CREATE_PERMISSION_TIMEOUT (5 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_GET_CREDENTIAL_TIMEOUT
#define DEFAULT_TURN_GET_CREDENTIAL_TIMEOUT (5 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_MAX_PEER_COUNT
#define DEFAULT_TURN_MAX_PEER_COUNT 32 |
◆ DEFAULT_TURN_MESSAGE_RECV_CHANNEL_DATA_BUFFER_LEN
◆ DEFAULT_TURN_MESSAGE_SEND_CHANNEL_DATA_BUFFER_LEN
◆ DEFAULT_TURN_PERMISSION_REFRESH_GRACE_PERIOD
#define DEFAULT_TURN_PERMISSION_REFRESH_GRACE_PERIOD (30 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_SEND_REFRESH_INVERVAL
#define DEFAULT_TURN_SEND_REFRESH_INVERVAL (1 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_TIMER_INTERVAL_AFTER_READY
#define DEFAULT_TURN_TIMER_INTERVAL_AFTER_READY (1 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ DEFAULT_TURN_TIMER_INTERVAL_BEFORE_READY
#define DEFAULT_TURN_TIMER_INTERVAL_BEFORE_READY (50 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND) |
◆ MAX_TURN_CHANNEL_DATA_MESSAGE_SIZE
#define MAX_TURN_CHANNEL_DATA_MESSAGE_SIZE 4 + 65536 /* header + data */ |
◆ MAX_TURN_PROFILE_LOG_DESC_LEN
#define MAX_TURN_PROFILE_LOG_DESC_LEN 256 |
◆ TURN_CHANNEL_BIND_CHANNEL_NUMBER_BASE
#define TURN_CHANNEL_BIND_CHANNEL_NUMBER_BASE (UINT16) 0x4000 |
◆ TURN_DATA_CHANNEL_MSG_FIRST_BYTE
#define TURN_DATA_CHANNEL_MSG_FIRST_BYTE 0x40 |
◆ TURN_DATA_CHANNEL_SEND_OVERHEAD
#define TURN_DATA_CHANNEL_SEND_OVERHEAD 4 |
◆ TURN_PERMISSION_LIFETIME
#define TURN_PERMISSION_LIFETIME (300 * HUNDREDS_OF_NANOS_IN_A_SECOND) |
◆ TURN_REQUEST_TRANSPORT_TCP
#define TURN_REQUEST_TRANSPORT_TCP 6 |
◆ TURN_REQUEST_TRANSPORT_UDP
#define TURN_REQUEST_TRANSPORT_UDP 17 |
◆ TURN_STATE_ALLOCATION_STR
#define TURN_STATE_ALLOCATION_STR (PCHAR) "TURN_STATE_ALLOCATION" |
◆ TURN_STATE_BIND_CHANNEL_STR
#define TURN_STATE_BIND_CHANNEL_STR (PCHAR) "TURN_STATE_BIND_CHANNEL" |
◆ TURN_STATE_CHECK_SOCKET_CONNECTION_STR
#define TURN_STATE_CHECK_SOCKET_CONNECTION_STR (PCHAR) "TURN_STATE_CHECK_SOCKET_CONNECTION" |
◆ TURN_STATE_CLEAN_UP_STR
#define TURN_STATE_CLEAN_UP_STR (PCHAR) "TURN_STATE_CLEAN_UP" |
◆ TURN_STATE_CREATE_PERMISSION_STR
#define TURN_STATE_CREATE_PERMISSION_STR (PCHAR) "TURN_STATE_CREATE_PERMISSION" |
◆ TURN_STATE_FAILED_STR
#define TURN_STATE_FAILED_STR (PCHAR) "TURN_STATE_FAILED" |
◆ TURN_STATE_GET_CREDENTIALS_STR
#define TURN_STATE_GET_CREDENTIALS_STR (PCHAR) "TURN_STATE_GET_CREDENTIALS" |
◆ TURN_STATE_MACHINE_NAME
#define TURN_STATE_MACHINE_NAME (PCHAR) "TURN" |
◆ TURN_STATE_NEW_STR
#define TURN_STATE_NEW_STR (PCHAR) "TURN_STATE_NEW" |
◆ 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" |
◆ PTurnChannelData
◆ PTurnConnection
◆ PTurnConnectionCallbacks
◆ PTurnPeer
◆ PTurnProfileDiagnostics
◆ RelayAddressAvailableFunc
◆ TurnConnection
◆ TurnStateFailedFunc
◆ TURN_CONNECTION_DATA_TRANSFER_MODE
Enumerator |
---|
TURN_CONNECTION_DATA_TRANSFER_MODE_SEND_INDIDATION | |
TURN_CONNECTION_DATA_TRANSFER_MODE_DATA_CHANNEL | |
◆ TURN_PEER_CONNECTION_STATE
Enumerator |
---|
TURN_PEER_CONN_STATE_CREATE_PERMISSION | |
TURN_PEER_CONN_STATE_BIND_CHANNEL | |
TURN_PEER_CONN_STATE_READY | |
TURN_PEER_CONN_STATE_FAILED | |
◆ checkTurnPeerConnections()
◆ createTurnConnection()
◆ freeTurnConnection()
◆ turnConnectionAddPeer()
◆ turnConnectionFatalError()
VOID turnConnectionFatalError |
( |
PTurnConnection |
pTurnConnection, |
|
|
STATUS |
errorStatus |
|
) |
| |
◆ turnConnectionFreePreAllocatedPackets()
STATUS turnConnectionFreePreAllocatedPackets |
( |
PTurnConnection |
pTurnConnection | ) |
|
◆ turnConnectionGetLongTermKey()
STATUS turnConnectionGetLongTermKey |
( |
PCHAR |
username, |
|
|
PCHAR |
realm, |
|
|
PCHAR |
password, |
|
|
PBYTE |
pBuffer, |
|
|
UINT32 |
bufferLen |
|
) |
| |
◆ turnConnectionGetPeerWithChannelNumber()
◆ turnConnectionGetPeerWithIp()
◆ turnConnectionGetRelayAddress()
◆ turnConnectionGetTime()
UINT64 turnConnectionGetTime |
( |
UINT64 |
customData | ) |
|
◆ turnConnectionHandleChannelData()
STATUS turnConnectionHandleChannelData |
( |
PTurnConnection |
pTurnConnection, |
|
|
PBYTE |
pBuffer, |
|
|
UINT32 |
bufferLen, |
|
|
PTurnChannelData |
pChannelData, |
|
|
PUINT32 |
pChannelDataCount, |
|
|
PUINT32 |
pProcessedDataLen |
|
) |
| |
◆ turnConnectionHandleChannelDataTcpMode()
STATUS turnConnectionHandleChannelDataTcpMode |
( |
PTurnConnection |
pTurnConnection, |
|
|
PBYTE |
pBuffer, |
|
|
UINT32 |
bufferLen, |
|
|
PTurnChannelData |
pChannelData, |
|
|
PUINT32 |
pTurnChannelDataCount, |
|
|
PUINT32 |
pProcessedDataLen |
|
) |
| |
◆ turnConnectionHandleStun()
STATUS turnConnectionHandleStun |
( |
PTurnConnection |
pTurnConnection, |
|
|
PBYTE |
pBuffer, |
|
|
UINT32 |
bufferLen |
|
) |
| |
◆ turnConnectionHandleStunError()
STATUS turnConnectionHandleStunError |
( |
PTurnConnection |
pTurnConnection, |
|
|
PBYTE |
pBuffer, |
|
|
UINT32 |
bufferLen |
|
) |
| |
◆ turnConnectionIncomingDataHandler()
◆ turnConnectionIsShutdownComplete()
◆ turnConnectionPackageTurnAllocationRequest()
STATUS turnConnectionPackageTurnAllocationRequest |
( |
PCHAR |
username, |
|
|
PCHAR |
realm, |
|
|
PBYTE |
nonce, |
|
|
UINT16 |
nonceLen, |
|
|
UINT32 |
lifetime, |
|
|
PStunPacket * |
ppStunPacket |
|
) |
| |
◆ turnConnectionRefreshAllocation()
◆ turnConnectionRefreshPermission()
STATUS turnConnectionRefreshPermission |
( |
PTurnConnection |
pTurnConnection, |
|
|
PBOOL |
pNeedRefresh |
|
) |
| |
◆ turnConnectionSendData()
◆ turnConnectionShutdown()
STATUS turnConnectionShutdown |
( |
PTurnConnection |
pTurnConnection, |
|
|
UINT64 |
waitUntilAllocationFreedTimeout |
|
) |
| |
◆ turnConnectionStart()
◆ turnConnectionTimerCallback()
STATUS turnConnectionTimerCallback |
( |
UINT32 |
timerId, |
|
|
UINT64 |
currentTime, |
|
|
UINT64 |
customData |
|
) |
| |
◆ turnConnectionUpdateNonce()