Amazon Kinesis Webrtc C SDK
Loading...
Searching...
No Matches
DataChannel.h
Go to the documentation of this file.
1/*******************************************
2DataChannel internal include file
3*******************************************/
4#ifndef __KINESIS_VIDEO_WEBRTC_CLIENT_PEERCONNECTION_DATACHANNEL__
5#define __KINESIS_VIDEO_WEBRTC_CLIENT_PEERCONNECTION_DATACHANNEL__
6
7#pragma once
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define DATA_CHANNEL_PROTOCOL_STR (PCHAR) "SCTP"
14
15typedef struct {
17
20 UINT32 channelId;
24
27 BOOL openFired; // onOpen delivered (it can be due both from allocateSctp and from dataChannelOnOpen)
28 // In-band channel whose DATA_CHANNEL_OPEN went out and nothing has come back on its stream yet: its messages
29 // go ordered, RFC 8832 section 6
30 volatile ATOMIC_BOOL awaitingDcepAck;
32
33#ifdef __cplusplus
34}
35#endif
36#endif /* __KINESIS_VIDEO_WEBRTC_CLIENT_PEERCONNECTION_DATACHANNEL__ */
struct KvsDataChannel * PKvsDataChannel
VOID(* RtcOnOpen)(UINT64, PRtcDataChannel)
Definition Include.h:1341
VOID(* RtcOnMessage)(UINT64, PRtcDataChannel, BOOL, PBYTE, UINT32)
RtcOnMessage is fired when a message is received for the DataChannel.
Definition Include.h:1334
struct __RtcDataChannel RtcDataChannel
RtcDataChannel represents a bi-directional data channel between two peers.
struct RtcPeerConnection * PRtcPeerConnection
Definition DataChannel.h:15
UINT32 channelId
Definition DataChannel.h:20
BOOL openFired
Definition DataChannel.h:27
UINT64 onMessageCustomData
Definition DataChannel.h:21
RtcDataChannelInit rtcDataChannelInit
Definition DataChannel.h:19
RtcDataChannel dataChannel
Definition DataChannel.h:16
RtcDataChannelStats rtcDataChannelDiagnostics
Definition DataChannel.h:23
RtcOnOpen onOpen
Definition DataChannel.h:26
UINT64 onOpenCustomData
Definition DataChannel.h:25
volatile ATOMIC_BOOL awaitingDcepAck
Definition DataChannel.h:30
RtcOnMessage onMessage
Definition DataChannel.h:22
PRtcPeerConnection pRtcPeerConnection
Definition DataChannel.h:18
RtcDataChannelInit dictionary used to configure properties of the underlying channel such as data rel...
Definition Include.h:1809
Definition Stats.h:578