public static PollIO register (PollIO io) { lock (ionew_locker) { ionew[io.channel] = io; return io; } }
private static void UpdateEvent (PollIO io) { EventType eventtype = io.UpdateEvent (); if (eventtype.POLLCLOSE) { if (io.Close ()) { try { io.channel.Close (); } catch (Exception) { } iomap.Remove(io.channel); } return; } if (eventtype.POLLIN) rlist.Add (io.channel); if (eventtype.POLLOUT) wlist.Add (io.channel); if (eventtype.POLLERR) elist.Add (io.channel); channelset.Add (io.channel); }