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