Amazon Kinesis Webrtc C SDK
FileCache.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SignalingFileCacheEntry
 

Macros

#define DEFAULT_CACHE_FILE_PATH   (PCHAR) "./.SignalingCache_v0"
 
#define MAX_SIGNALING_CACHE_ENTRY_TIMESTAMP_STR_LEN   10
 
#define MAX_SERIALIZED_SIGNALING_CACHE_ENTRY_LEN    MAX_CHANNEL_NAME_LEN + MAX_ARN_LEN + MAX_REGION_NAME_LEN + MAX_SIGNALING_ENDPOINT_URI_LEN * 2 + MAX_SIGNALING_CACHE_ENTRY_TIMESTAMP_STR_LEN + 8
 
#define MAX_SIGNALING_CACHE_ENTRY_COUNT   32
 
#define SIGNALING_FILE_CACHE_ROLE_TYPE_MASTER_STR   "Master"
 
#define SIGNALING_FILE_CACHE_ROLE_TYPE_VIEWER_STR   "Viewer"
 

Typedefs

typedef struct SignalingFileCacheEntryPSignalingFileCacheEntry
 

Functions

STATUS deserializeSignalingCacheEntries (PCHAR, UINT64, PSignalingFileCacheEntry, PUINT32, PCHAR)
 
STATUS signalingCacheLoadFromFile (PCHAR, PCHAR, SIGNALING_CHANNEL_ROLE_TYPE, PSignalingFileCacheEntry, PBOOL, PCHAR)
 
STATUS signalingCacheSaveToFile (PSignalingFileCacheEntry, PCHAR)
 

Macro Definition Documentation

◆ DEFAULT_CACHE_FILE_PATH

#define DEFAULT_CACHE_FILE_PATH   (PCHAR) "./.SignalingCache_v0"

◆ MAX_SERIALIZED_SIGNALING_CACHE_ENTRY_LEN

#define MAX_SERIALIZED_SIGNALING_CACHE_ENTRY_LEN    MAX_CHANNEL_NAME_LEN + MAX_ARN_LEN + MAX_REGION_NAME_LEN + MAX_SIGNALING_ENDPOINT_URI_LEN * 2 + MAX_SIGNALING_CACHE_ENTRY_TIMESTAMP_STR_LEN + 8

◆ MAX_SIGNALING_CACHE_ENTRY_COUNT

#define MAX_SIGNALING_CACHE_ENTRY_COUNT   32

◆ MAX_SIGNALING_CACHE_ENTRY_TIMESTAMP_STR_LEN

#define MAX_SIGNALING_CACHE_ENTRY_TIMESTAMP_STR_LEN   10

◆ SIGNALING_FILE_CACHE_ROLE_TYPE_MASTER_STR

#define SIGNALING_FILE_CACHE_ROLE_TYPE_MASTER_STR   "Master"

◆ SIGNALING_FILE_CACHE_ROLE_TYPE_VIEWER_STR

#define SIGNALING_FILE_CACHE_ROLE_TYPE_VIEWER_STR   "Viewer"

Typedef Documentation

◆ PSignalingFileCacheEntry

Function Documentation

◆ deserializeSignalingCacheEntries()

STATUS deserializeSignalingCacheEntries ( PCHAR  cachedFileContent,
UINT64  fileSize,
PSignalingFileCacheEntry  pSignalingFileCacheEntryList,
PUINT32  pEntryCount,
PCHAR  cacheFilePath 
)
Here is the caller graph for this function:

◆ signalingCacheLoadFromFile()

STATUS signalingCacheLoadFromFile ( PCHAR  channelName,
PCHAR  region,
SIGNALING_CHANNEL_ROLE_TYPE  role,
PSignalingFileCacheEntry  pSignalingFileCacheEntry,
PBOOL  pCacheFound,
PCHAR  cacheFilePath 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ signalingCacheSaveToFile()

STATUS signalingCacheSaveToFile ( PSignalingFileCacheEntry  pSignalingFileCacheEntry,
PCHAR  cacheFilePath 
)
Here is the call graph for this function:
Here is the caller graph for this function: