public TCPRelay(FuckshadowsController controller, Configuration conf) { _controller = controller; _config = conf; Handlers = new HashSet <TCPHandler>(); _lastSweepTime = DateTime.Now; }
public TCPHandler(FuckshadowsController controller, Configuration config, TCPRelay tcprelay, Socket socket) { _controller = controller; _config = config; _tcprelay = tcprelay; _localSocket = socket; _argsPool = tcprelay._argsPool; lastActivity = DateTime.Now; }
public TCPHandler(FuckshadowsController controller, Configuration config, TCPRelay tcprelay, Socket socket) { _controller = controller; _config = config; _tcprelay = tcprelay; _connection = socket; _serverTimeout = 30 * 1000; lastActivity = DateTime.Now; }
public TCPHandler(FuckshadowsController controller, Configuration config, TCPRelay tcprelay, Socket socket) { _controller = controller; _config = config; _tcprelay = tcprelay; _connection = socket; _proxyTimeout = config.proxy.proxyTimeout * 1000; _serverTimeout = config.GetCurrentServer().timeout * 1000; lastActivity = DateTime.Now; }
internal void UpdateConfiguration(FuckshadowsController controller) { _controller = controller; Reset(); try { if (Config.StatisticsEnabled) { StartTimerWithoutState(ref _recorder, Run, RecordingInterval); LoadRawStatistics(); StartTimerWithoutState(ref _speedMonior, UpdateSpeed, _monitorInterval); } else { _recorder?.Dispose(); _speedMonior?.Dispose(); } } catch (Exception e) { Logging.LogUsefulException(e); } }
public UDPRelay(FuckshadowsController controller) { this._controller = controller; InitArgsPool(); }
public UDPRelay(FuckshadowsController controller) { this._controller = controller; }