|
@@ -105,8 +105,8 @@ typedef enum {
|
|
|
|
|
|
// audio
|
|
|
RTC_CODEC_OPUS = 128,
|
|
|
- RTC_CODEC_PCMU = 129,
|
|
|
- RTC_CODEC_PCMA = 130
|
|
|
+ RTC_CODEC_PCMU = 129,
|
|
|
+ RTC_CODEC_PCMA = 130
|
|
|
} rtcCodec;
|
|
|
|
|
|
typedef enum {
|
|
@@ -196,7 +196,7 @@ RTC_C_EXPORT int rtcGetLocalAddress(int pc, char *buffer, int size);
|
|
|
RTC_C_EXPORT int rtcGetRemoteAddress(int pc, char *buffer, int size);
|
|
|
|
|
|
RTC_C_EXPORT int rtcGetSelectedCandidatePair(int pc, char *local, int localSize, char *remote,
|
|
|
- int remoteSize);
|
|
|
+ int remoteSize);
|
|
|
|
|
|
RTC_C_EXPORT int rtcGetMaxDataChannelStream(int pc);
|
|
|
|
|
@@ -242,7 +242,7 @@ typedef struct {
|
|
|
RTC_C_EXPORT int rtcSetDataChannelCallback(int pc, rtcDataChannelCallbackFunc cb);
|
|
|
RTC_C_EXPORT int rtcCreateDataChannel(int pc, const char *label); // returns dc id
|
|
|
RTC_C_EXPORT int rtcCreateDataChannelEx(int pc, const char *label,
|
|
|
- const rtcDataChannelInit *init); // returns dc id
|
|
|
+ const rtcDataChannelInit *init); // returns dc id
|
|
|
RTC_C_EXPORT int rtcDeleteDataChannel(int dc);
|
|
|
|
|
|
RTC_C_EXPORT int rtcGetDataChannelStream(int dc);
|
|
@@ -308,7 +308,7 @@ typedef struct {
|
|
|
// Opaque message
|
|
|
|
|
|
// Opaque type used (via rtcMessage*) to reference an rtc::Message
|
|
|
-typedef void* rtcMessage;
|
|
|
+typedef void *rtcMessage;
|
|
|
|
|
|
// Allocate a new opaque message.
|
|
|
// Must be explicitly freed by rtcDeleteOpaqueMessage() unless
|
|
@@ -377,7 +377,8 @@ typedef struct {
|
|
|
const char *proxyServer; // only non-authenticated http supported for now
|
|
|
const char **protocols;
|
|
|
int protocolsCount;
|
|
|
- int pingInterval; // in milliseconds, 0 means default, < 0 means disabled
|
|
|
+ int connectionTimeoutMs; // in milliseconds, 0 means default, < 0 means disabled
|
|
|
+ int pingIntervalMs; // in milliseconds, 0 means default, < 0 means disabled
|
|
|
int maxOutstandingPings; // 0 means default, < 0 means disabled
|
|
|
} rtcWsConfiguration;
|
|
|
|
|
@@ -399,10 +400,11 @@ typedef struct {
|
|
|
const char *keyPemFile; // NULL for autogenerated certificate
|
|
|
const char *keyPemPass; // NULL if no pass
|
|
|
const char *bindAddress; // NULL for IP_ANY_ADDR
|
|
|
+ int connectionTimeoutMs; // in milliseconds, 0 means default, < 0 means disabled
|
|
|
} rtcWsServerConfiguration;
|
|
|
|
|
|
RTC_C_EXPORT int rtcCreateWebSocketServer(const rtcWsServerConfiguration *config,
|
|
|
- rtcWebSocketClientCallbackFunc cb); // returns wsserver id
|
|
|
+ rtcWebSocketClientCallbackFunc cb); // returns wsserver id
|
|
|
RTC_C_EXPORT int rtcDeleteWebSocketServer(int wsserver);
|
|
|
|
|
|
RTC_C_EXPORT int rtcGetWebSocketServerPort(int wsserver);
|
|
@@ -417,18 +419,18 @@ RTC_C_EXPORT void rtcCleanup(void);
|
|
|
// SCTP global settings
|
|
|
|
|
|
typedef struct {
|
|
|
- int recvBufferSize; // in bytes, <= 0 means optimized default
|
|
|
- int sendBufferSize; // in bytes, <= 0 means optimized default
|
|
|
- int maxChunksOnQueue; // in chunks, <= 0 means optimized default
|
|
|
- int initialCongestionWindow; // in MTUs, <= 0 means optimized default
|
|
|
- int maxBurst; // in MTUs, 0 means optimized default, < 0 means disabled
|
|
|
- int congestionControlModule; // 0: RFC2581 (default), 1: HSTCP, 2: H-TCP, 3: RTCC
|
|
|
- int delayedSackTimeMs; // in msecs, 0 means optimized default, < 0 means disabled
|
|
|
- int minRetransmitTimeoutMs; // in msecs, <= 0 means optimized default
|
|
|
- int maxRetransmitTimeoutMs; // in msecs, <= 0 means optimized default
|
|
|
- int initialRetransmitTimeoutMs; // in msecs, <= 0 means optimized default
|
|
|
+ int recvBufferSize; // in bytes, <= 0 means optimized default
|
|
|
+ int sendBufferSize; // in bytes, <= 0 means optimized default
|
|
|
+ int maxChunksOnQueue; // in chunks, <= 0 means optimized default
|
|
|
+ int initialCongestionWindow; // in MTUs, <= 0 means optimized default
|
|
|
+ int maxBurst; // in MTUs, 0 means optimized default, < 0 means disabled
|
|
|
+ int congestionControlModule; // 0: RFC2581 (default), 1: HSTCP, 2: H-TCP, 3: RTCC
|
|
|
+ int delayedSackTimeMs; // in milliseconds, 0 means optimized default, < 0 means disabled
|
|
|
+ int minRetransmitTimeoutMs; // in milliseconds, <= 0 means optimized default
|
|
|
+ int maxRetransmitTimeoutMs; // in milliseconds, <= 0 means optimized default
|
|
|
+ int initialRetransmitTimeoutMs; // in milliseconds, <= 0 means optimized default
|
|
|
int maxRetransmitAttempts; // number of retransmissions, <= 0 means optimized default
|
|
|
- int heartbeatIntervalMs; // in msecs, <= 0 means optimized default
|
|
|
+ int heartbeatIntervalMs; // in milliseconds, <= 0 means optimized default
|
|
|
} rtcSctpSettings;
|
|
|
|
|
|
// Note: SCTP settings apply to newly-created PeerConnections only
|