4 #include <boost/asio.hpp>
5 #include <boost/bind.hpp>
6 #include <boost/function.hpp>
7 #include <boost/scoped_ptr.hpp>
8 #include <boost/random.hpp>
40 return session && session->
Up();
void AddSession(const SessionKey &key, const SessionConfig &config, ChangeCb cb)
Client(Connection *cm, ClientId client_id=0)
Session * SessionByKey(const boost::asio::ip::address &address, const SessionIndex &index=SessionIndex())
bool Up(const SessionKey &key) const
Session * GetSession(const SessionKey &key) const
virtual void NotifyStateChange(const SessionKey &key, const bool &up)=0
void DeleteClientSessions()
void DeleteSession(const SessionKey &key)
void DeleteSession(const SessionKey &key)
void AddSession(const SessionKey &key, const SessionConfig &config)
void Notify(const SessionKey &key, const BFD::BFDState &new_state)
void DeleteClientSessions()
virtual Server * GetServer() const =0