OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BFD::RESTClientSession Class Reference

#include <bfd_client_session.h>

Collaboration diagram for BFD::RESTClientSession:

Public Member Functions

 RESTClientSession (Server *server, ClientId client_id)
 
 ~RESTClientSession ()
 
SessionGetSession (const boost::asio::ip::address &ip, const SessionIndex &index=SessionIndex()) const
 
SessionGetSession (const SessionKey &key) const
 
void Notify ()
 
void AddMonitoringHttpSession (HttpSession *session)
 
ResultCode AddBFDConnection (const SessionKey &key, const SessionConfig &config)
 
ResultCode DeleteBFDConnection (const SessionKey &key)
 

Private Types

typedef std::set< SessionKeySessions
 
typedef std::set
< boost::intrusive_ptr
< HttpSession > > 
HttpSessionSet
 

Private Member Functions

void OnHttpSessionEvent (HttpSession *session, enum TcpSession::Event event)
 

Private Attributes

ClientId client_id_
 
Serverserver_
 
Sessions bfd_sessions_
 
HttpSessionSet http_sessions_
 
bool changed_
 

Detailed Description

Definition at line 24 of file bfd_client_session.h.

Member Typedef Documentation

typedef std::set<boost::intrusive_ptr<HttpSession> > BFD::RESTClientSession::HttpSessionSet
private

Definition at line 41 of file bfd_client_session.h.

typedef std::set<SessionKey> BFD::RESTClientSession::Sessions
private

Definition at line 40 of file bfd_client_session.h.

Constructor & Destructor Documentation

BFD::RESTClientSession::RESTClientSession ( Server server,
ClientId  client_id 
)

Definition at line 15 of file bfd_client_session.cc.

BFD::RESTClientSession::~RESTClientSession ( )

Definition at line 101 of file bfd_client_session.cc.

Here is the call graph for this function:

Member Function Documentation

ResultCode BFD::RESTClientSession::AddBFDConnection ( const SessionKey key,
const SessionConfig config 
)

Definition at line 77 of file bfd_client_session.cc.

Here is the call graph for this function:

void BFD::RESTClientSession::AddMonitoringHttpSession ( HttpSession session)

Definition at line 69 of file bfd_client_session.cc.

Here is the call graph for this function:

ResultCode BFD::RESTClientSession::DeleteBFDConnection ( const SessionKey key)

Definition at line 93 of file bfd_client_session.cc.

Here is the call graph for this function:

Session * BFD::RESTClientSession::GetSession ( const boost::asio::ip::address &  ip,
const SessionIndex index = SessionIndex() 
) const

Definition at line 19 of file bfd_client_session.cc.

Session * BFD::RESTClientSession::GetSession ( const SessionKey key) const

Definition at line 24 of file bfd_client_session.cc.

Here is the call graph for this function:

void BFD::RESTClientSession::Notify ( )

Definition at line 28 of file bfd_client_session.cc.

Here is the call graph for this function:

void BFD::RESTClientSession::OnHttpSessionEvent ( HttpSession session,
enum TcpSession::Event  event 
)
private

Definition at line 61 of file bfd_client_session.cc.

Member Data Documentation

Sessions BFD::RESTClientSession::bfd_sessions_
private

Definition at line 47 of file bfd_client_session.h.

bool BFD::RESTClientSession::changed_
private

Definition at line 49 of file bfd_client_session.h.

ClientId BFD::RESTClientSession::client_id_
private

Definition at line 45 of file bfd_client_session.h.

HttpSessionSet BFD::RESTClientSession::http_sessions_
private

Definition at line 48 of file bfd_client_session.h.

Server* BFD::RESTClientSession::server_
private

Definition at line 46 of file bfd_client_session.h.


The documentation for this class was generated from the following files: