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

Go to the source code of this file.

Classes

struct  TransactionIdStore
struct  IceServer

Macros

#define DEFAULT_MAX_STORED_TRANSACTION_ID_COUNT   20
#define MAX_STORED_TRANSACTION_ID_COUNT   100
#define ICE_STUN_DEFAULT_PORT   3478
#define ICE_STUNS_DEFAULT_PORT   5349
#define ICE_URL_PREFIX_STUN   "stun:"
#define ICE_URL_PREFIX_STUN_SECURE   "stuns:"
#define ICE_URL_PREFIX_TURN   "turn:"
#define ICE_URL_PREFIX_TURN_SECURE   "turns:"
#define ICE_URL_TRANSPORT_UDP   "transport=udp"
#define ICE_URL_TRANSPORT_TCP   "transport=tcp"
#define ICE_TRANSPORT_TYPE_UDP   "udp"
#define ICE_TRANSPORT_TYPE_TCP   "tcp"
#define ICE_TRANSPORT_TYPE_TLS   "tls"

Typedefs

typedef struct TransactionIdStore * PTransactionIdStore
typedef struct IceServer * PIceServer

Enumerations

enum  ICE_SERVER_SCHEME { ICE_SERVER_SCHEME_STUN = 0 , ICE_SERVER_SCHEME_STUNS , ICE_SERVER_SCHEME_TURN , ICE_SERVER_SCHEME_TURNS }

Functions

STATUS createTransactionIdStore (UINT32, PTransactionIdStore *)
STATUS freeTransactionIdStore (PTransactionIdStore *)
VOID transactionIdStoreInsert (PTransactionIdStore, PBYTE)
VOID transactionIdStoreRemove (PTransactionIdStore, PBYTE)
BOOL transactionIdStoreHasId (PTransactionIdStore, PBYTE)
VOID transactionIdStoreClear (PTransactionIdStore)
STATUS iceUtilsGenerateTransactionId (PBYTE, UINT32)
STATUS iceUtilsPackageStunPacket (PStunPacket, PBYTE, UINT32, PBYTE, PUINT32)
STATUS iceUtilsSendStunPacket (PStunPacket, PBYTE, UINT32, PKvsIpAddress, PSocketConnection, struct __TurnConnection *, BOOL)
STATUS iceUtilsSendData (PBYTE, UINT32, PKvsIpAddress, PSocketConnection, struct __TurnConnection *, BOOL)
STATUS parseIceServer (PIceServer, PCHAR, PCHAR, PCHAR)

Macro Definition Documentation

◆ DEFAULT_MAX_STORED_TRANSACTION_ID_COUNT

#define DEFAULT_MAX_STORED_TRANSACTION_ID_COUNT   20

◆ ICE_STUN_DEFAULT_PORT

#define ICE_STUN_DEFAULT_PORT   3478

◆ ICE_STUNS_DEFAULT_PORT

#define ICE_STUNS_DEFAULT_PORT   5349

◆ ICE_TRANSPORT_TYPE_TCP

#define ICE_TRANSPORT_TYPE_TCP   "tcp"

◆ ICE_TRANSPORT_TYPE_TLS

#define ICE_TRANSPORT_TYPE_TLS   "tls"

◆ ICE_TRANSPORT_TYPE_UDP

#define ICE_TRANSPORT_TYPE_UDP   "udp"

◆ ICE_URL_PREFIX_STUN

#define ICE_URL_PREFIX_STUN   "stun:"

◆ ICE_URL_PREFIX_STUN_SECURE

#define ICE_URL_PREFIX_STUN_SECURE   "stuns:"

◆ ICE_URL_PREFIX_TURN

#define ICE_URL_PREFIX_TURN   "turn:"

◆ ICE_URL_PREFIX_TURN_SECURE

#define ICE_URL_PREFIX_TURN_SECURE   "turns:"

◆ ICE_URL_TRANSPORT_TCP

#define ICE_URL_TRANSPORT_TCP   "transport=tcp"

◆ ICE_URL_TRANSPORT_UDP

#define ICE_URL_TRANSPORT_UDP   "transport=udp"

◆ MAX_STORED_TRANSACTION_ID_COUNT

#define MAX_STORED_TRANSACTION_ID_COUNT   100

Typedef Documentation

◆ PIceServer

typedef struct IceServer * PIceServer

◆ PTransactionIdStore

Enumeration Type Documentation

◆ ICE_SERVER_SCHEME

Enumerator
ICE_SERVER_SCHEME_STUN 
ICE_SERVER_SCHEME_STUNS 
ICE_SERVER_SCHEME_TURN 
ICE_SERVER_SCHEME_TURNS 

Function Documentation

◆ createTransactionIdStore()

STATUS createTransactionIdStore ( UINT32 maxIdCount,
PTransactionIdStore * ppTransactionIdStore )
Here is the caller graph for this function:

◆ freeTransactionIdStore()

STATUS freeTransactionIdStore ( PTransactionIdStore * ppTransactionIdStore)
Here is the caller graph for this function:

◆ iceUtilsGenerateTransactionId()

STATUS iceUtilsGenerateTransactionId ( PBYTE pBuffer,
UINT32 bufferLen )
Here is the caller graph for this function:

◆ iceUtilsPackageStunPacket()

STATUS iceUtilsPackageStunPacket ( PStunPacket pStunPacket,
PBYTE password,
UINT32 passwordLen,
PBYTE pBuffer,
PUINT32 pBufferLen )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ iceUtilsSendData()

STATUS iceUtilsSendData ( PBYTE ,
UINT32 ,
PKvsIpAddress ,
PSocketConnection ,
struct __TurnConnection * ,
BOOL  )

◆ iceUtilsSendStunPacket()

STATUS iceUtilsSendStunPacket ( PStunPacket ,
PBYTE ,
UINT32 ,
PKvsIpAddress ,
PSocketConnection ,
struct __TurnConnection * ,
BOOL  )

◆ parseIceServer()

STATUS parseIceServer ( PIceServer pIceServer,
PCHAR url,
PCHAR username,
PCHAR credential )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transactionIdStoreClear()

VOID transactionIdStoreClear ( PTransactionIdStore pTransactionIdStore)
Here is the caller graph for this function:

◆ transactionIdStoreHasId()

BOOL transactionIdStoreHasId ( PTransactionIdStore pTransactionIdStore,
PBYTE transactionId )
Here is the caller graph for this function:

◆ transactionIdStoreInsert()

VOID transactionIdStoreInsert ( PTransactionIdStore pTransactionIdStore,
PBYTE transactionId )
Here is the caller graph for this function:

◆ transactionIdStoreRemove()

VOID transactionIdStoreRemove ( PTransactionIdStore pTransactionIdStore,
PBYTE transactionId )
Here is the caller graph for this function: