public TcpTransport(PollSet pollset, int flags) { if (pollset != null) { pollSet = pollset; pollSet.DisposingEvent += close; } else { ROS.Error()($"[{ThisNode.Name}] 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)) { ROS.Error()($"[{ThisNode.Name}] thread.Join() timed out."); } 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) { }