Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
     }
 }
Esempio n. 3
0
 public PollManager()
 {
     poll_set = new PollSet();
 }
Esempio n. 4
0
 public TcpTransport(PollSet pollset)
     : this(pollset, 0)
 {
 }
Esempio n. 5
0
 public TcpTransport(System.Net.Sockets.Socket s, PollSet pollset, int flags)
     : this(pollset, flags)
 {
     setSocket(new Socket(s));
 }
Esempio n. 6
0
 public TcpTransport(System.Net.Sockets.Socket s, PollSet pollset)
     : this(s, pollset, 0)
 {
 }