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)
151
return !networkStream.Socket.Poll(0,
SelectMode
.SelectRead);
System.Net.Sockets (18)
System\Net\Sockets\Socket.cs (10)
2328
/// <param name="mode">One of the <see cref="
SelectMode
"/> values.</param>
2331
/// For <see cref="
SelectMode
.SelectRead"/>, it returns <see langword="true"/> if <see cref="M:Listen"/> has been called and
2333
/// For <see cref="
SelectMode
.SelectWrite"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> and
2335
/// For <see cref="
SelectMode
.SelectError"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> that
2341
public bool Poll(int microSeconds,
SelectMode
mode)
2362
/// <param name="mode">One of the <see cref="
SelectMode
"/> values.</param>
2365
/// For <see cref="
SelectMode
.SelectRead"/>, it returns <see langword="true"/> if <see cref="M:Listen"/> has been called and
2367
/// For <see cref="
SelectMode
.SelectWrite"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> and
2369
/// For <see cref="
SelectMode
.SelectError"/>, it returns <see langword="true"/> if processing a <see cref="M:Connect"/> that
2376
public bool Poll(TimeSpan timeout,
SelectMode
mode) =>
System\Net\Sockets\SocketPal.Unix.cs (7)
1762
public static unsafe SocketError Poll(SafeSocketHandle handle, int microseconds,
SelectMode
mode, out bool status)
1767
case
SelectMode
.SelectRead: inEvent = Interop.PollEvents.POLLIN; break;
1768
case
SelectMode
.SelectWrite: inEvent = Interop.PollEvents.POLLOUT; break;
1769
case
SelectMode
.SelectError: inEvent = Interop.PollEvents.POLLPRI; break;
1784
case
SelectMode
.SelectRead: status = (outEvents & (Interop.PollEvents.POLLIN | Interop.PollEvents.POLLHUP)) != 0; break;
1785
case
SelectMode
.SelectWrite: status = (outEvents & Interop.PollEvents.POLLOUT) != 0; break;
1786
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);