libbgp
0.6
A C++ BGP Library.
|
#include <clock.h>
Public Member Functions | |
virtual uint64_t | getTime () const =0 |
Get the current time. More... | |
The Clock interface.
The clock interface is used by BgpFsm to get current time to check for time-based events like peer hold timer expired, and determine the timing of KEEPALIVE message. BgpFsm comes with a default Clock implementation, RealtimeClock. RealtimeClock is a clock that uses system time as time.
This might be useful if BgpFsm is used inside a simulator like ns3. A Ns3Clock class should be implemented to report simulated time to BgpFsm.
|
pure virtual |