Esempio n. 1
0
 public SyncPool(int size,SyncSocket server_)
 {
     Server = server_;
     OnAdd = new Queue<SyncSocketWrapper>(size);
     OnExec = new List<SyncSocketWrapper>(size);
     StartThread();
 }
Esempio n. 2
0
 public void BeginReceive(SyncSocket server)
 {
     Server = server;
     thread = new Thread(new ThreadStart(Receive));
     thread.Start();
 }