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
[BUG] Incorrect error code when srt_listen on closed socket (#3298)
* [BUG] Incorrect error code when srt_listen on closed socket
* Fixed API description
* Ask Codespell to ignore the TEST() macro.
* Replace few if statements by a switch statement.
* Status SRTS_NONEXIST throws MN_CLOSED instead of MN_ISUNBOUND
* Manage the rendez-vous case first
---------
Co-authored-by: Mikolaj Malecki <mmalecki@haivision.com>
Co-authored-by: Clément Gérouville <cgerouville@haivision.com>
Copy file name to clipboardExpand all lines: docs/API/API-functions.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -612,9 +612,10 @@ the listener socket to accept group connections
612
612
|[`SRT_EINVPARAM`](#srt_einvparam)| Value of `backlog` is 0 or negative. |
613
613
|[`SRT_EINVSOCK`](#srt_einvsock)| Socket [`u`](#u) indicates no valid SRT socket. |
614
614
|[`SRT_EUNBOUNDSOCK`](#srt_eunboundsock)|[`srt_bind`](#srt_bind) has not yet been called on that socket. |
615
+
|[`SRT_ESCLOSED`](#srt_esclosed)| The socket has been closed |
615
616
|[`SRT_ERDVNOSERV`](#srt_erdvnoserv)|[`SRTO_RENDEZVOUS`](API-socket-options.md#SRTO_RENDEZVOUS) flag is set to true on specified socket. |
616
617
|[`SRT_EINVOP`](#srt_einvop)| Internal error (should not happen when [`SRT_EUNBOUNDSOCK`](#srt_eunboundsock) is reported). |
617
-
|[`SRT_ECONNSOCK`](#srt_econnsock)| The socket is already connected. |
618
+
|[`SRT_ECONNSOCK`](#srt_econnsock)| The socket is currently being used to establish a connection (like by `srt_connect`)|
618
619
|[`SRT_EDUPLISTEN`](#srt_eduplisten)| The address used in [`srt_bind`](#srt_bind) by this socket is already occupied by another listening socket. <br/> Binding multiple sockets to one IP address and port is allowed, as long as <br/> [`SRTO_REUSEADDR`](API-socket-options.md#SRTO_REUSEADDRS) is set to true, but only one of these sockets can be set up as a listener. |
0 commit comments