#include "../Include_i.h"
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) |
#define LOG_CLASS "LwsApiCalls" |
Implementation of a API calls based on LibWebSocket
#define WEBRTC_SCHEME_NAME "webrtc" |
STATUS checkAndCorrectForClockSkew | ( | PSignalingClient | pSignalingClient, |
PRequestInfo | pRequestInfo | ||
) |
STATUS connectSignalingChannelLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
STATUS createChannelLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
STATUS createLwsCallInfo | ( | PSignalingClient | pSignalingClient, |
PRequestInfo | pRequestInfo, | ||
UINT32 | protocolIndex, | ||
PLwsCallInfo * | ppLwsCallInfo | ||
) |
STATUS deleteChannelLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
STATUS describeChannelLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
STATUS describeMediaStorageConfLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
STATUS freeLwsCallInfo | ( | PLwsCallInfo * | ppLwsCallInfo | ) |
STATUS getChannelEndpointLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
STATUS getIceConfigLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
STATUS getMessageTypeFromString | ( | PCHAR | typeStr, |
UINT32 | typeLen, | ||
SIGNALING_MESSAGE_TYPE * | pMessageType | ||
) |
PCHAR getMessageTypeInString | ( | SIGNALING_MESSAGE_TYPE | messageType | ) |
BOOL isCallResultSignatureExpired | ( | PCallInfo | pCallInfo | ) |
BOOL isCallResultSignatureNotYetCurrent | ( | PCallInfo | pCallInfo | ) |
STATUS joinStorageSessionLws | ( | PSignalingClient | pSignalingClient, |
UINT64 | time | ||
) |
< TBD. Accroding to the design document, the prefix of url will be webrtc://
STATUS lwsCompleteSync | ( | PLwsCallInfo | pCallInfo | ) |
INT32 lwsHttpCallbackRoutine | ( | struct lws * | wsi, |
enum lws_callback_reasons | reason, | ||
PVOID | user, | ||
PVOID | pDataIn, | ||
size_t | dataSize | ||
) |
PVOID lwsListenerHandler | ( | PVOID | args | ) |
VOID lwsSignalHandler | ( | INT32 | signal | ) |
INT32 lwsWssCallbackRoutine | ( | struct lws * | wsi, |
enum lws_callback_reasons | reason, | ||
PVOID | user, | ||
PVOID | pDataIn, | ||
size_t | dataSize | ||
) |
STATUS receiveLwsMessage | ( | PSignalingClient | pSignalingClient, |
PCHAR | pMessage, | ||
UINT32 | messageLen | ||
) |
PVOID receiveLwsMessageWrapper | ( | 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 terminateConnectionWithStatus | ( | PSignalingClient | pSignalingClient, |
SERVICE_CALL_RESULT | callResult | ||
) |
STATUS terminateLwsListenerLoop | ( | PSignalingClient | pSignalingClient | ) |
STATUS wakeLwsServiceEventLoop | ( | PSignalingClient | pSignalingClient, |
UINT32 | protocolIndex | ||
) |
STATUS writeLwsData | ( | PSignalingClient | pSignalingClient, |
BOOL | awaitForResponse | ||
) |