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
The Socket.Select documentation for the overload where timeout is a
`System.TimesSpan` states that `ArgumentNullException` is thrown if any
of checkRead, checkWrite or checkError is empty/null. But, null or empty
collections can be passed for them. The real requirement is that at
least one of them must contain at least one socket. It is perfectly okay
to `select(read_sockets, NULL, NULL)` or `select(NULL, write_sockets,
NULL)` or `select(NULL, NULL, error_sockets)`.
Copy file name to clipboardExpand all lines: xml/System.Net.Sockets/Socket.xml
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11054,11 +11054,13 @@ You must call the Bind method before performing this operation.</exception>
11054
11054
11055
11055
-and-
11056
11056
11057
-
The <paramref name="checkWrite" /> parameter is <see langword="null" /> or empty
11057
+
The <paramref name="checkWrite" /> parameter is <see langword="null" /> or empty
11058
11058
11059
11059
-and-
11060
11060
11061
-
The <paramref name="checkError" /> parameter is <see langword="null" /> or empty.</exception>
11061
+
The <paramref name="checkError" /> parameter is <see langword="null" /> or empty.
11062
+
11063
+
At least one of <paramref name="checkRead" />, <paramref name="checkWrite" /> and <paramref name="checkError" /> must contain at least one <see cref="Socket"/>.</exception>
11062
11064
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
11063
11065
<exception cref="T:System.ObjectDisposedException">.NET 5 and later: One or more sockets are disposed.</exception>
11064
11066
<altmember cref="T:System.Collections.IList" />
@@ -11113,8 +11115,18 @@ You must call the Bind method before performing this operation.</exception>
11113
11115
<param name="timeout">The timeout value. A value equal to -1 microseconds indicates an infinite timeout.</param>
11114
11116
<summary>Determines the status of one or more sockets.</summary>
11115
11117
<remarks>To be added.</remarks>
11116
-
<exception cref="T:System.ArgumentNullException">The <paramref name="checkRead" />, <paramref name="checkWrite" />, or <paramref name="checkError" /> parameter is <see langword="null" /> or empty.</exception>
11117
-
<exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="checkRead" />, <paramref name="checkWrite" />, or <paramref name="checkError" /> parameter contains too many sockets.</exception>
11118
+
<exception cref="T:System.ArgumentNullException">The <paramref name="checkRead" /> parameter is <see langword="null" /> or empty.
11119
+
11120
+
-and-
11121
+
11122
+
The <paramref name="checkWrite" /> parameter is <see langword="null" /> or empty
11123
+
11124
+
-and-
11125
+
11126
+
The <paramref name="checkError" /> parameter is <see langword="null" /> or empty.
11127
+
11128
+
At least one of <paramref name="checkRead" />, <paramref name="checkWrite" /> and <paramref name="checkError" /> must contain at least one <see cref="Socket"/>.</exception>
11129
+
<exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="checkRead" />, <paramref name="che^ckWrite" />, or <paramref name="checkError" /> parameter contains too many sockets.</exception>
11118
11130
<exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="timeout" /> was less than -1 microseconds or greater than <see cref="F:System.Int32.MaxValue" /> microseconds</exception>
11119
11131
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
11120
11132
<exception cref="T:System.ObjectDisposedException">One or more sockets was disposed.</exception>
0 commit comments