Esempio n. 1
0
        private static void RegisterForReadable(TSocket tsocket)
        {
            bool register = tsocket.SetRegistered();

            EPollInterop.EPollControl(tsocket.ThreadContext.EPollFd,
                                      register ? EPollOperation.Add : EPollOperation.Modify,
                                      tsocket.Fd,
                                      EPollEvents.Readable | EPollEvents.OneShot,
                                      EPollData(tsocket.Fd));
        }