//@C Copyright Notice //@C ================ //@C This file is part of CPSW. It is subject to the license terms in the LICENSE.txt //@C file found in the top-level directory of this distribution and at //@C https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. //@C //@C No part of CPSW, including this file, may be copied, modified, propagated, or //@C distributed except according to the terms contained in the LICENSE.txt file. #ifndef CPSW_SRP_ADDRESS_H #define CPSW_SRP_ADDRESS_H #include #include #include // Dynamical timeout based on round-trip times class DynTimeout { private: static const uint64_t AVG_SHFT = 6; // time-constant for averager v(n+1) = v(n) + (x - v(n))/(1<