Amazon Kinesis Webrtc C SDK
Loading...
Searching...
No Matches
DataChannel.c File Reference
#include "../Include_i.h"
Include dependency graph for DataChannel.c:

Classes

struct  NegotiatedIdLookup

Macros

#define LOG_CLASS   "DataChannel"

Functions

STATUS connectLocalDataChannel ()
STATUS createDataChannel (PRtcPeerConnection pPeerConnection, PCHAR pDataChannelName, PRtcDataChannelInit pRtcDataChannelInit, PRtcDataChannel *ppRtcDataChannel)
 createDataChannel creates a new RtcDataChannel object with the given label.
STATUS createDataChannelWithCallbacks (PRtcPeerConnection pPeerConnection, PCHAR pDataChannelName, PRtcDataChannelInit pRtcDataChannelInit, UINT64 customData, RtcOnMessage rtcOnMessage, RtcOnOpen rtcOnOpen, PRtcDataChannel *ppRtcDataChannel)
 createDataChannelWithCallbacks is createDataChannel() with the message and open callbacks set as the channel is created, so that it receives from the first message.
STATUS dataChannelSend (PRtcDataChannel pRtcDataChannel, BOOL isBinary, PBYTE pMessage, UINT32 pMessageLen)
 Send data via the PRtcDataChannel.
STATUS dataChannelOnMessage (PRtcDataChannel pRtcDataChannel, UINT64 customData, RtcOnMessage rtcOnMessage)
 Set a callback for data channel message.
STATUS dataChannelOnOpen (PRtcDataChannel pRtcDataChannel, UINT64 customData, RtcOnOpen rtcOnOpen)
 Set a callback for data channel open.

Macro Definition Documentation

◆ LOG_CLASS

#define LOG_CLASS   "DataChannel"

Function Documentation

◆ connectLocalDataChannel()

STATUS connectLocalDataChannel ( )