Amazon Kinesis Webrtc C SDK
LwsApiCalls.c File Reference
#include "../Include_i.h"
Include dependency graph for LwsApiCalls.c:

Macros

#define LOG_CLASS   "LwsApiCalls"
 
#define WEBRTC_SCHEME_NAME   "webrtc"
 

Functions

VOID lwsSignalHandler (INT32 signal)
 
INT32 lwsHttpCallbackRoutine (struct lws *wsi, enum lws_callback_reasons reason, PVOID user, PVOID pDataIn, size_t dataSize)
 
INT32 lwsWssCallbackRoutine (struct lws *wsi, enum lws_callback_reasons reason, PVOID user, PVOID pDataIn, size_t dataSize)
 
STATUS lwsCompleteSync (PLwsCallInfo pCallInfo)
 
BOOL isCallResultSignatureExpired (PCallInfo pCallInfo)
 
BOOL isCallResultSignatureNotYetCurrent (PCallInfo pCallInfo)
 
STATUS checkAndCorrectForClockSkew (PSignalingClient pSignalingClient, PRequestInfo pRequestInfo)
 
STATUS describeChannelLws (PSignalingClient pSignalingClient, UINT64 time)
 
STATUS createChannelLws (PSignalingClient pSignalingClient, UINT64 time)
 
STATUS getChannelEndpointLws (PSignalingClient pSignalingClient, UINT64 time)
 
STATUS getIceConfigLws (PSignalingClient pSignalingClient, UINT64 time)
 
STATUS deleteChannelLws (PSignalingClient pSignalingClient, UINT64 time)
 
STATUS createLwsCallInfo (PSignalingClient pSignalingClient, PRequestInfo pRequestInfo, UINT32 protocolIndex, PLwsCallInfo *ppLwsCallInfo)
 
STATUS freeLwsCallInfo (PLwsCallInfo *ppLwsCallInfo)
 
STATUS connectSignalingChannelLws (PSignalingClient pSignalingClient, UINT64 time)
 
STATUS joinStorageSessionLws (PSignalingClient pSignalingClient, UINT64 time)
 
STATUS describeMediaStorageConfLws (PSignalingClient pSignalingClient, UINT64 time)
 
PVOID lwsListenerHandler (PVOID args)
 
PVOID reconnectHandler (PVOID args)
 
STATUS sendLwsMessage (PSignalingClient pSignalingClient, SIGNALING_MESSAGE_TYPE messageType, PCHAR peerClientId, PCHAR pMessage, UINT32 messageLen, PCHAR pCorrelationId, UINT32 correlationIdLen)
 
STATUS writeLwsData (PSignalingClient pSignalingClient, BOOL awaitForResponse)
 
STATUS receiveLwsMessage (PSignalingClient pSignalingClient, PCHAR pMessage, UINT32 messageLen)
 
STATUS terminateConnectionWithStatus (PSignalingClient pSignalingClient, SERVICE_CALL_RESULT callResult)
 
STATUS getMessageTypeFromString (PCHAR typeStr, UINT32 typeLen, SIGNALING_MESSAGE_TYPE *pMessageType)
 
PCHAR getMessageTypeInString (SIGNALING_MESSAGE_TYPE messageType)
 
STATUS terminateLwsListenerLoop (PSignalingClient pSignalingClient)
 
PVOID receiveLwsMessageWrapper (PVOID args)
 
STATUS wakeLwsServiceEventLoop (PSignalingClient pSignalingClient, UINT32 protocolIndex)
 

Macro Definition Documentation

◆ LOG_CLASS

#define LOG_CLASS   "LwsApiCalls"

Implementation of a API calls based on LibWebSocket

◆ WEBRTC_SCHEME_NAME

#define WEBRTC_SCHEME_NAME   "webrtc"

Function Documentation

◆ checkAndCorrectForClockSkew()

STATUS checkAndCorrectForClockSkew ( PSignalingClient  pSignalingClient,
PRequestInfo  pRequestInfo 
)
Here is the caller graph for this function:

◆ connectSignalingChannelLws()

STATUS connectSignalingChannelLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createChannelLws()

STATUS createChannelLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createLwsCallInfo()

STATUS createLwsCallInfo ( PSignalingClient  pSignalingClient,
PRequestInfo  pRequestInfo,
UINT32  protocolIndex,
PLwsCallInfo ppLwsCallInfo 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteChannelLws()

STATUS deleteChannelLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ describeChannelLws()

STATUS describeChannelLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ describeMediaStorageConfLws()

STATUS describeMediaStorageConfLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freeLwsCallInfo()

STATUS freeLwsCallInfo ( PLwsCallInfo ppLwsCallInfo)
Here is the caller graph for this function:

◆ getChannelEndpointLws()

STATUS getChannelEndpointLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIceConfigLws()

STATUS getIceConfigLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMessageTypeFromString()

STATUS getMessageTypeFromString ( PCHAR  typeStr,
UINT32  typeLen,
SIGNALING_MESSAGE_TYPE pMessageType 
)
Here is the caller graph for this function:

◆ getMessageTypeInString()

PCHAR getMessageTypeInString ( SIGNALING_MESSAGE_TYPE  messageType)
Here is the caller graph for this function:

◆ isCallResultSignatureExpired()

BOOL isCallResultSignatureExpired ( PCallInfo  pCallInfo)
Here is the caller graph for this function:

◆ isCallResultSignatureNotYetCurrent()

BOOL isCallResultSignatureNotYetCurrent ( PCallInfo  pCallInfo)
Here is the caller graph for this function:

◆ joinStorageSessionLws()

STATUS joinStorageSessionLws ( PSignalingClient  pSignalingClient,
UINT64  time 
)

< TBD. Accroding to the design document, the prefix of url will be webrtc://

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lwsCompleteSync()

STATUS lwsCompleteSync ( PLwsCallInfo  pCallInfo)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lwsHttpCallbackRoutine()

INT32 lwsHttpCallbackRoutine ( struct lws *  wsi,
enum lws_callback_reasons  reason,
PVOID  user,
PVOID  pDataIn,
size_t  dataSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lwsListenerHandler()

PVOID lwsListenerHandler ( PVOID  args)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lwsSignalHandler()

VOID lwsSignalHandler ( INT32  signal)

◆ lwsWssCallbackRoutine()

INT32 lwsWssCallbackRoutine ( struct lws *  wsi,
enum lws_callback_reasons  reason,
PVOID  user,
PVOID  pDataIn,
size_t  dataSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ receiveLwsMessage()

STATUS receiveLwsMessage ( PSignalingClient  pSignalingClient,
PCHAR  pMessage,
UINT32  messageLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ receiveLwsMessageWrapper()

PVOID receiveLwsMessageWrapper ( PVOID  args)
Here is the caller graph for this function:

◆ reconnectHandler()

PVOID reconnectHandler ( PVOID  args)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendLwsMessage()

STATUS sendLwsMessage ( PSignalingClient  pSignalingClient,
SIGNALING_MESSAGE_TYPE  messageType,
PCHAR  peerClientId,
PCHAR  pMessage,
UINT32  messageLen,
PCHAR  pCorrelationId,
UINT32  correlationIdLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ terminateConnectionWithStatus()

STATUS terminateConnectionWithStatus ( PSignalingClient  pSignalingClient,
SERVICE_CALL_RESULT  callResult 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ terminateLwsListenerLoop()

STATUS terminateLwsListenerLoop ( PSignalingClient  pSignalingClient)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wakeLwsServiceEventLoop()

STATUS wakeLwsServiceEventLoop ( PSignalingClient  pSignalingClient,
UINT32  protocolIndex 
)
Here is the caller graph for this function:

◆ writeLwsData()

STATUS writeLwsData ( PSignalingClient  pSignalingClient,
BOOL  awaitForResponse 
)
Here is the call graph for this function:
Here is the caller graph for this function: