You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOC.md
+35-5Lines changed: 35 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,21 +120,35 @@ The `proxyServer` URI, if present, must match the format `[("http"|"socks5") (":
120
120
121
121
If the username or password of an URI contains reserved special characters, they must be percent-encoded. In particular, ":" must be encoded as "%3A" and "@" must by encoded as "%40".
122
122
123
+
#### rtcClosePeerConnection
124
+
125
+
```
126
+
int rtcClosePeerConnection(int pc)
127
+
```
128
+
129
+
Closes the Peer Connection.
130
+
131
+
Arguments:
132
+
133
+
-`pc`: the Peer Connection identifier
134
+
135
+
Return value: `RTC_ERR_SUCCESS` or a negative error code
136
+
123
137
#### rtcDeletePeerConnection
124
138
125
139
```
126
140
int rtcDeletePeerConnection(int pc)
127
141
```
128
142
129
-
Deletes the specified Peer Connection.
143
+
Deletes the Peer Connection.
130
144
131
145
Arguments:
132
146
133
147
-`pc`: the Peer Connection identifier
134
148
135
149
Return value: `RTC_ERR_SUCCESS` or a negative error code
136
150
137
-
After this function has been called, `pc` must not be used in a function call anymore. This function will block until all scheduled callbacks of `pc` return (except the one this function might be called in) and no other callback will be called for `pc` after it returns.
151
+
If it is not already closed, the Peer Connection is implicitly closed before being deleted. After this function has been called, `pc` must not be used in a function call anymore. This function will block until all scheduled callbacks of `pc` return (except the one this function might be called in) and no other callback will be called for `pc` after it returns.
138
152
139
153
#### rtcSetXCallback
140
154
@@ -463,6 +477,22 @@ Return value: `RTC_ERR_SUCCESS` or a negative error code
463
477
464
478
WebSocket: Like with the JavaScript API, the state will first change to closing, then closed only after the connection has been actually closed.
465
479
480
+
#### rtcDelete
481
+
482
+
```
483
+
int rtcDelete(int id)
484
+
```
485
+
486
+
Deletes the channel.
487
+
488
+
Arguments:
489
+
490
+
-`id`: the channel identifier
491
+
492
+
Return value: `RTC_ERR_SUCCESS` or a negative error code
493
+
494
+
If it is not already closed, the channel is implicitly closed before being deleted. After this function has been called, `id` must not be used in a function call anymore. This function will block until all scheduled callbacks of `id` return (except the one this function might be called in) and no other callback will be called for `id` after it returns.
495
+
466
496
#### rtcIsOpen
467
497
468
498
```
@@ -595,7 +625,7 @@ Arguments:
595
625
596
626
Return value: the identifier of the new Data Channel or a negative error code.
597
627
598
-
The Data Channel must be deleted with `rtcDeleteDataChannel`.
628
+
The Data Channel must be deleted with `rtcDeleteDataChannel` (or `rtcDelete`).
599
629
600
630
If `disableAutoNegotiation` was not set in `rtcConfiguration`, the library will automatically initiate the negotiation by calling `rtcSetLocalDescription` internally. Otherwise, the user must call `rtcSetLocalDescription` to initiate the negotiation after creating the first Data Channel.
601
631
@@ -695,7 +725,7 @@ Arguments:
695
725
696
726
Return value: the identifier of the new Track or a negative error code
697
727
698
-
The new track must be deleted with `rtcDeleteTrack`.
728
+
The new track must be deleted with `rtcDeleteTrack` (or `rtcDelete`).
699
729
700
730
The user must call `rtcSetLocalDescription` to negotiate the track.
701
731
@@ -799,7 +829,7 @@ Arguments:
799
829
800
830
Return value: the identifier of the new WebSocket or a negative error code
801
831
802
-
The new WebSocket must be deleted with `rtcDeleteWebSocket`. The scheme of the URL must be either `ws` or `wss`.
832
+
The new WebSocket must be deleted with `rtcDeleteWebSocket` (or `rtcDelete`). The scheme of the URL must be either `ws` or `wss`.
Copy file name to clipboardExpand all lines: pages/content/pages/reference.md
+35-5Lines changed: 35 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,21 +123,35 @@ The `proxyServer` URI, if present, must match the format `[("http"|"socks5") (":
123
123
124
124
If the username or password of an URI contains reserved special characters, they must be percent-encoded. In particular, ":" must be encoded as "%3A" and "@" must by encoded as "%40".
125
125
126
+
#### rtcClosePeerConnection
127
+
128
+
```
129
+
int rtcClosePeerConnection(int pc)
130
+
```
131
+
132
+
Closes the Peer Connection.
133
+
134
+
Arguments:
135
+
136
+
-`pc`: the Peer Connection identifier
137
+
138
+
Return value: `RTC_ERR_SUCCESS` or a negative error code
139
+
126
140
#### rtcDeletePeerConnection
127
141
128
142
```
129
143
int rtcDeletePeerConnection(int pc)
130
144
```
131
145
132
-
Deletes the specified Peer Connection.
146
+
Deletes the Peer Connection.
133
147
134
148
Arguments:
135
149
136
150
-`pc`: the Peer Connection identifier
137
151
138
152
Return value: `RTC_ERR_SUCCESS` or a negative error code
139
153
140
-
After this function has been called, `pc` must not be used in a function call anymore. This function will block until all scheduled callbacks of `pc` return (except the one this function might be called in) and no other callback will be called for `pc` after it returns.
154
+
If it is not already closed, the Peer Connection is implicitly closed before being deleted. After this function has been called, `pc` must not be used in a function call anymore. This function will block until all scheduled callbacks of `pc` return (except the one this function might be called in) and no other callback will be called for `pc` after it returns.
141
155
142
156
#### rtcSetXCallback
143
157
@@ -466,6 +480,22 @@ Return value: `RTC_ERR_SUCCESS` or a negative error code
466
480
467
481
WebSocket: Like with the JavaScript API, the state will first change to closing, then closed only after the connection has been actually closed.
468
482
483
+
#### rtcDelete
484
+
485
+
```
486
+
int rtcDelete(int id)
487
+
```
488
+
489
+
Deletes the channel.
490
+
491
+
Arguments:
492
+
493
+
-`id`: the channel identifier
494
+
495
+
Return value: `RTC_ERR_SUCCESS` or a negative error code
496
+
497
+
If it is not already closed, the channel is implicitly closed before being deleted. After this function has been called, `id` must not be used in a function call anymore. This function will block until all scheduled callbacks of `id` return (except the one this function might be called in) and no other callback will be called for `id` after it returns.
498
+
469
499
#### rtcIsOpen
470
500
471
501
```
@@ -598,7 +628,7 @@ Arguments:
598
628
599
629
Return value: the identifier of the new Data Channel or a negative error code.
600
630
601
-
The Data Channel must be deleted with `rtcDeleteDataChannel`.
631
+
The Data Channel must be deleted with `rtcDeleteDataChannel` (or `rtcDelete`).
602
632
603
633
If `disableAutoNegotiation` was not set in `rtcConfiguration`, the library will automatically initiate the negotiation by calling `rtcSetLocalDescription` internally. Otherwise, the user must call `rtcSetLocalDescription` to initiate the negotiation after creating the first Data Channel.
604
634
@@ -698,7 +728,7 @@ Arguments:
698
728
699
729
Return value: the identifier of the new Track or a negative error code
700
730
701
-
The new track must be deleted with `rtcDeleteTrack`.
731
+
The new track must be deleted with `rtcDeleteTrack` (or `rtcDelete`).
702
732
703
733
The user must call `rtcSetLocalDescription` to negotiate the track.
704
734
@@ -802,7 +832,7 @@ Arguments:
802
832
803
833
Return value: the identifier of the new WebSocket or a negative error code
804
834
805
-
The new WebSocket must be deleted with `rtcDeleteWebSocket`. The scheme of the URL must be either `ws` or `wss`.
835
+
The new WebSocket must be deleted with `rtcDeleteWebSocket` (or `rtcDelete`). The scheme of the URL must be either `ws` or `wss`.
0 commit comments