Ejemplo n.º 1
0
 private void InitVars()
 {
     _clientSocket = new Winsock();
     _serverSockets = new WinsockCollection(true);
     _listenSocket = new Winsock();
     _clients = new ClientCollection();
     _tQueue = new TaskQueue();
     _tQThread = new Thread(new ThreadStart(_tQueue.QueueStart));
     _tQThread.IsBackground = true;
     _tQThread.Start();
 }
Ejemplo n.º 2
0
 private void UpdateList(ClientCollection clients)
 {
     lstClients.Items.Clear();
     foreach (Client c in clients.Values)
     {
         lstClients.Items.Add(c.Name);
     }
 }