21 references to SelectMode
netstandard (1)
netstandard.cs (1)
1266
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SelectMode
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
756
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SelectMode
))]
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
148
return !networkStream.Socket.Poll(0,
SelectMode
.SelectRead);
System.Net.Sockets (18)
System\Net\Sockets\Socket.cs (10)
2211
/// <param name="mode">One of the <see cref="
SelectMode
"/> values.</param>
2214
/// For <see cref="
SelectMode
.SelectRead"/>, it returns <see langword="true"/> if <see cref="M:Listen"/> has been called and
2216
/// For <see cref="
SelectMode
.SelectWrite"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> and
2218
/// For <see cref="
SelectMode
.SelectError"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> that
2224
public bool Poll(int microSeconds,
SelectMode
mode)
2243
/// <param name="mode">One of the <see cref="
SelectMode
"/> values.</param>
2246
/// For <see cref="
SelectMode
.SelectRead"/>, it returns <see langword="true"/> if <see cref="M:Listen"/> has been called and
2248
/// For <see cref="
SelectMode
.SelectWrite"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> and
2250
/// For <see cref="
SelectMode
.SelectError"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> that
2257
public bool Poll(TimeSpan timeout,
SelectMode
mode) =>
System\Net\Sockets\SocketPal.Unix.cs (7)
1741
public static unsafe SocketError Poll(SafeSocketHandle handle, int microseconds,
SelectMode
mode, out bool status)
1746
case
SelectMode
.SelectRead: inEvent = Interop.PollEvents.POLLIN; break;
1747
case
SelectMode
.SelectWrite: inEvent = Interop.PollEvents.POLLOUT; break;
1748
case
SelectMode
.SelectError: inEvent = Interop.PollEvents.POLLPRI; break;
1763
case
SelectMode
.SelectRead: status = (outEvents & (Interop.PollEvents.POLLIN | Interop.PollEvents.POLLHUP)) != 0; break;
1764
case
SelectMode
.SelectWrite: status = (outEvents & Interop.PollEvents.POLLOUT) != 0; break;
1765
case
SelectMode
.SelectError: status = (outEvents & (Interop.PollEvents.POLLERR | Interop.PollEvents.POLLPRI)) != 0; break;
System\Net\Sockets\TCPListener.cs (1)
183
return _serverSocket!.Poll(0,
SelectMode
.SelectRead);