public void shutdown() { shutting_down = true; poll_set = null; thread.Join(); poll_signal = null; }
public TcpTransport(PollSet pollset, int flags) : this() { if (pollset != null) { poll_set = pollset; poll_set.DisposingEvent += close; this.flags = flags; } }
public TcpTransport(PollSet pollset, int flags) : this() { if (pollset != null) { poll_set = pollset; poll_set.DisposingEvent += close; } else { EDB.WriteLine("Uh oh! Null pollset in tcptransport ctor"); } this.flags = flags; }
public TcpTransport(PollSet pollset, int flags) : this() { if (pollset != null) { poll_set = pollset; poll_set.DisposingEvent += close; } else { throw new Exception("Null pollset in tcptransport ctor"); } this.flags = flags; }
public void shutdown() { if (thread != null && !shutting_down) { shutting_down = true; poll_set.Dispose(); poll_set = null; signals.Clear(); if (!thread.Join(2000)) { EDB.WriteLine("PollManager had 2 seconds to drink the coolaid, and didn't. Trying the \"funnel method\"."); try { thread.Abort(); } catch (Exception ex) { } } thread = null; } }
public PollManager() { poll_set = new PollSet(); }
public TcpTransport(PollSet pollset) : this(pollset, 0) { }
public TcpTransport(System.Net.Sockets.Socket s, PollSet pollset, int flags) : this(pollset, flags) { setSocket(new Socket(s)); }
public TcpTransport(System.Net.Sockets.Socket s, PollSet pollset) : this(s, pollset, 0) { }
public TcpTransport(PollSet pollset, int flags) : this() { poll_set = pollset; this.flags = flags; }