public AsyncRequestState(IPAddress peerIP, int peerPort, int maxretries, int timeout) { _endPoint = new IPEndPoint(peerIP, peerPort); _maxRetries = maxretries; _timeout = timeout; // current retry value is set to -1 because we do not count the first request as a retry. _currentRetry = -1; _timer = null; }