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

#include <nexthop_client.h>

Collaboration diagram for NexthopDBClient:

Public Types

typedef boost::shared_ptr
< NexthopDBClient
ClientPtr
 
typedef std::vector
< NexthopDBEntry::NexthopPtr
NexthopList
 
typedef std::vector
< NexthopDBEntry::NexthopPtr >
::iterator 
NexthopListIterator
 

Public Member Functions

 NexthopDBClient (UnixDomainSocketSession *session, NexthopDBServer *server)
 
 ~NexthopDBClient ()
 
void AddNexthop (NexthopDBEntry::NexthopPtr nh)
 
void RemoveNexthop (NexthopDBEntry::NexthopPtr nh)
 
bool FindNexthop (NexthopDBEntry::NexthopPtr nh)
 
void EventHandler (UnixDomainSocketSession *, UnixDomainSocketSession::Event)
 

Private Member Functions

void WriteMessage ()
 
uint8_t * NextMessage (int *length)
 

Private Attributes

UnixDomainSocketSession * session_
 
NexthopDBServerserver_
 
NexthopList nexthop_list_
 

Friends

class NexthopDBServer
 

Detailed Description

Definition at line 26 of file nexthop_client.h.

Member Typedef Documentation

typedef boost::shared_ptr<NexthopDBClient> NexthopDBClient::ClientPtr

Definition at line 30 of file nexthop_client.h.

Definition at line 31 of file nexthop_client.h.

Definition at line 33 of file nexthop_client.h.

Constructor & Destructor Documentation

NexthopDBClient::NexthopDBClient ( UnixDomainSocketSession *  session,
NexthopDBServer server 
)

Definition at line 18 of file nexthop_client.cc.

Here is the call graph for this function:

NexthopDBClient::~NexthopDBClient ( )

Definition at line 28 of file nexthop_client.cc.

Member Function Documentation

void NexthopDBClient::AddNexthop ( NexthopDBEntry::NexthopPtr  nh)

Definition at line 50 of file nexthop_client.cc.

void NexthopDBClient::EventHandler ( UnixDomainSocketSession *  session,
UnixDomainSocketSession::Event  event 
)

Definition at line 37 of file nexthop_client.cc.

Here is the call graph for this function:

bool NexthopDBClient::FindNexthop ( NexthopDBEntry::NexthopPtr  nh)

Definition at line 68 of file nexthop_client.cc.

uint8_t * NexthopDBClient::NextMessage ( int *  length)
private

Definition at line 81 of file nexthop_client.cc.

void NexthopDBClient::RemoveNexthop ( NexthopDBEntry::NexthopPtr  nh)

Definition at line 56 of file nexthop_client.cc.

void NexthopDBClient::WriteMessage ( )
private

Definition at line 132 of file nexthop_client.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class NexthopDBServer
friend

Definition at line 49 of file nexthop_client.h.

Member Data Documentation

NexthopList NexthopDBClient::nexthop_list_
private

Definition at line 60 of file nexthop_client.h.

NexthopDBServer* NexthopDBClient::server_
private

Definition at line 53 of file nexthop_client.h.

UnixDomainSocketSession* NexthopDBClient::session_
private

Definition at line 52 of file nexthop_client.h.


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