|
@@ -57,7 +57,6 @@ An optional call to `rtcCleanup` unloads the global resources used by the librar
|
|
|
|
|
|
Warning: This function requires all Peer Connections, Data Channels, Tracks, and WebSockets to be destroyed before returning, meaning all callbacks must return before this function returns. Therefore, it must never be called from a callback.
|
|
|
|
|
|
-
|
|
|
#### rtcSetUserPointer
|
|
|
|
|
|
```
|
|
@@ -460,6 +459,10 @@ int rtcGetBufferedAmount(int id)
|
|
|
|
|
|
Retrieves the current buffered amount, i.e. the total size of currently buffered messages waiting to be actually sent in the channel. This does not account for the data buffered at the transport level.
|
|
|
|
|
|
+Arguments:
|
|
|
+
|
|
|
+- `id`: the channel identifier
|
|
|
+
|
|
|
Return value: the buffered amount or a negative error code
|
|
|
|
|
|
#### rtcSetBufferedAmountLowThreshold
|
|
@@ -791,9 +794,9 @@ Arguments:
|
|
|
- `config`: a structure with the following parameters:
|
|
|
- `uint16_t port`: the port to listen on (if 0, automatically select an available port)
|
|
|
- `bool enableTls`: if true, enable the TLS layer (WSS)
|
|
|
- - `const char *certificatePemFile`: path of the file containing the TLS PEM certificate (`NULL` for an autogenerated certificate)
|
|
|
- - `const char *keyPemFile`: path of the file containing the TLS PEM key (`NULL` for an autogenerated certificate)
|
|
|
- - `const char *keyPemPass`: the TLS PEM key passphrase (NULL if no passphrase)
|
|
|
+ - `const char *certificatePemFile`: PEM certificate or path of the file containing the PEM certificate (`NULL` for an autogenerated certificate)
|
|
|
+ - `const char *keyPemFile`: PEM key or path of the file containing the PEM key (`NULL` for an autogenerated certificate)
|
|
|
+ - `const char *keyPemPass`: PEM key file passphrase (NULL if no passphrase)
|
|
|
- `cb`: the callback for incoming client WebSocket connections (must not be `NULL`)
|
|
|
|
|
|
`cb` must have the following signature: `void rtcWebSocketClientCallbackFunc(int wsserver, int ws, void *user_ptr)`
|