33 references to SocketEvents
System.Net.Sockets (33)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.SocketEvent.cs (5)
26
public
SocketEvents
Events;
43
internal static partial Error TryChangeSocketEventRegistration(IntPtr port, SafeHandle socket,
SocketEvents
currentEvents,
SocketEvents
newEvents, IntPtr data);
46
internal static partial Error TryChangeSocketEventRegistration(IntPtr port, IntPtr socket,
SocketEvents
currentEvents,
SocketEvents
newEvents, IntPtr data);
System\Net\Sockets\SocketAsyncContext.Unix.cs (21)
2198
public Interop.Sys.
SocketEvents
HandleSyncEventsSpeculatively(Interop.Sys.
SocketEvents
events)
2200
if ((events & Interop.Sys.
SocketEvents
.Error) != 0)
2204
events ^= Interop.Sys.
SocketEvents
.Error;
2205
events |= Interop.Sys.
SocketEvents
.Read | Interop.Sys.
SocketEvents
.Write;
2208
if ((events & Interop.Sys.
SocketEvents
.Read) != 0 &&
2212
events ^= Interop.Sys.
SocketEvents
.Read;
2215
if ((events & Interop.Sys.
SocketEvents
.Write) != 0 &&
2219
events ^= Interop.Sys.
SocketEvents
.Write;
2226
public void HandleEventsInline(Interop.Sys.
SocketEvents
events)
2228
if ((events & Interop.Sys.
SocketEvents
.Error) != 0)
2232
events ^= Interop.Sys.
SocketEvents
.Error;
2233
events |= Interop.Sys.
SocketEvents
.Read | Interop.Sys.
SocketEvents
.Write;
2236
if ((events & Interop.Sys.
SocketEvents
.Read) != 0)
2242
if ((events & Interop.Sys.
SocketEvents
.Write) != 0)
2250
public unsafe void HandleEvents(Interop.Sys.
SocketEvents
events)
2252
Debug.Assert((events & Interop.Sys.
SocketEvents
.Error) == 0);
2255
(events & Interop.Sys.
SocketEvents
.Read) != 0 ? _receiveQueue.ProcessSyncEventOrGetAsyncEvent(this) : null;
2257
(events & Interop.Sys.
SocketEvents
.Write) != 0 ? _sendQueue.ProcessSyncEventOrGetAsyncEvent(this) : null;
System\Net\Sockets\SocketAsyncEngine.Unix.cs (7)
151
error = Interop.Sys.TryChangeSocketEventRegistration(_port, socketHandle, Interop.Sys.
SocketEvents
.None,
152
Interop.Sys.
SocketEvents
.Read | Interop.Sys.
SocketEvents
.Write, context.GlobalContextIndex);
386
Interop.Sys.
SocketEvents
events = context.HandleSyncEventsSpeculatively(socketEvent.Events);
388
if (events != Interop.Sys.
SocketEvents
.None)
404
public Interop.Sys.
SocketEvents
Events { get; }
406
public SocketIOEvent(SocketAsyncContext context, Interop.Sys.
SocketEvents
events)