4 #ifndef __KINESIS_VIDEO_WEBRTC_CLIENT_INCLUDE_I__
5 #define __KINESIS_VIDEO_WEBRTC_CLIENT_INCLUDE_I__
19 #define MSG_NOSIGNAL 0
28 #include "kvssdp/sdp_data_types.h"
29 #include "kvsstun/stun_data_types.h"
31 #ifdef KVS_USE_OPENSSL
32 #include <openssl/bio.h>
33 #include <openssl/err.h>
34 #include <openssl/hmac.h>
35 #include <openssl/md5.h>
36 #include <openssl/rand.h>
37 #include <openssl/sha.h>
38 #include <openssl/ssl.h>
40 #include <mbedtls/ssl.h>
41 #include <mbedtls/entropy.h>
42 #include <mbedtls/ctr_drbg.h>
43 #include <mbedtls/error.h>
44 #include <mbedtls/certs.h>
45 #include <mbedtls/sha256.h>
46 #include <mbedtls/md5.h>
49 #include <srtp2/srtp.h>
57 #include <libwebsockets.h>
59 #if !defined __WINDOWS_BUILD__
61 #include <sys/types.h>
63 #include <sys/types.h>
64 #include <sys/socket.h>
67 #include <arpa/inet.h>
69 #include <netinet/tcp.h>
73 #define ICE_MAX_UFRAG_LEN 256
74 #define ICE_MAX_UPWD_LEN 256
77 #define STUN_MAX_USERNAME_LEN (UINT16) 512
80 #define STUN_MAX_REALM_LEN (UINT16) 128
83 #define STUN_MAX_NONCE_LEN (UINT16) 128
86 #define STUN_MAX_ERROR_PHRASE_LEN (UINT16) 128
89 #define IPV6_ADDRESS_LENGTH (UINT16) 16
90 #define IPV4_ADDRESS_LENGTH (UINT16) 4
92 #define CERTIFICATE_FINGERPRINT_LENGTH 160
94 #define MAX_UDP_PACKET_SIZE 65507
108 #define IS_IPV4_ADDR(pAddress) ((pAddress)->family == KVS_IP_FAMILY_TYPE_IPV4)
111 #define ALIGN_UP_TO_MACHINE_WORD(x) ROUND_UP((x), SIZEOF(SIZE_T))
175 #define KVS_CONVERT_TIMESCALE(pts, from_timescale, to_timescale) (pts * to_timescale / from_timescale)
STATUS convertSdpErrorCode(SdpResult_t sdpResult)
Definition: SdpUtils.c:5
STATUS convertStunErrorCode(StunResult_t sdpResult)
Definition: StunUtils.c:5
STATUS(* IceServerSetIpFunc)(UINT64, PCHAR, PKvsIpAddress)
Definition: Include_i.h:113
KVS_IP_FAMILY_TYPE
Definition: Include_i.h:96
@ KVS_IP_FAMILY_TYPE_IPV4
Definition: Include_i.h:97
@ KVS_IP_FAMILY_TYPE_IPV6
Definition: Include_i.h:98
#define IPV6_ADDRESS_LENGTH
Definition: Include_i.h:89
STATUS generateJSONSafeString(PCHAR, UINT32)
Definition: PeerConnection.c:679
struct KvsIpAddress * PKvsIpAddress
STATUS getIpAddrStr(PKvsIpAddress pKvsIpAddress, PCHAR pBuffer, UINT32 bufferLen)
Definition: Network.c:461
Definition: Include_i.h:101
UINT16 port
Definition: Include_i.h:103
BOOL isPointToPoint
Definition: Include_i.h:105
UINT16 family
Definition: Include_i.h:102
Definition: SocketConnection.h:25
Definition: TurnConnection.h:119