public TransparentSocksConnection(Socket client, DebugWriter debug, ConnectionTracker connectionTracker, ConfigureProxySocket configureProxySocket)
 {
     this.client               = client;
     this.debug                = debug;
     this.connectionTracker    = connectionTracker;
     this.configureProxySocket = configureProxySocket;
 }
 public TransparentSocksConnection(Socket client, DebugWriter debug, ConnectionTracker connectionTracker, ConfigureProxySocket configureProxySocket)
 {
     this.client = client;
     this.debug = debug;
     this.connectionTracker = connectionTracker;
     this.configureProxySocket = configureProxySocket;
 }
        public TransparentUdpConnection(UdpClient server, DebugWriter debug, ConnectionTracker connectionTracker, ConfigureProxySocket configureProxySocket)
        {
            proxies = new ConcurrentDictionary <IPEndPoint, CountedProxySocket>();

            this.server               = server;
            this.debug                = debug;
            this.connectionTracker    = connectionTracker;
            this.configureProxySocket = configureProxySocket;


            localEndPoint = (IPEndPoint)server.Client.LocalEndPoint;
            if (localEndPoint.Address.Equals(IPAddress.Any))
            {
                localEndPoint = new IPEndPoint(IPAddress.Parse(Settings.Default.IPAddress), localEndPoint.Port);
            }
        }