Ejemplo n.º 1
0
        public void Stop(Socks5Worker worker)
        {
            var udpID = worker.udpID;

            tcpWorkers.TryRemove(worker.id, out worker);
            if (!string.IsNullOrEmpty(udpID))
            {
                udpWorkers.TryRemove(udpID, out worker);
            }
        }
Ejemplo n.º 2
0
 private void TCPAcceptClent(IAsyncResult result)
 {
     try
     {
         var client = tcpS.EndAcceptTcpClient(result);
         var worker = new Socks5Worker(this, client);
         tcpWorkers.TryAdd(worker.id, worker);
         worker.Start();
         TCPAcceptLoop();
     }catch {
     }
 }
Ejemplo n.º 3
0
 public void UDPJoin(Socks5Worker worker)
 {
     udpWorkers.TryAdd(worker.udpID, worker);
 }