OpenSDN source code
NexthopDBClient Class Reference

#include <nexthop_client.h>

Collaboration diagram for NexthopDBClient:

Public Types

typedef boost::shared_ptr< NexthopDBClientClientPtr
 
typedef std::vector< NexthopDBEntry::NexthopPtrNexthopList
 
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

◆ ClientPtr

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

Definition at line 30 of file nexthop_client.h.

◆ NexthopList

Definition at line 31 of file nexthop_client.h.

◆ NexthopListIterator

Definition at line 33 of file nexthop_client.h.

Constructor & Destructor Documentation

◆ NexthopDBClient()

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::~NexthopDBClient ( )

Definition at line 28 of file nexthop_client.cc.

Member Function Documentation

◆ AddNexthop()

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

Definition at line 50 of file nexthop_client.cc.

◆ EventHandler()

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:

◆ FindNexthop()

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

Definition at line 68 of file nexthop_client.cc.

◆ NextMessage()

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

Definition at line 81 of file nexthop_client.cc.

◆ RemoveNexthop()

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

Definition at line 56 of file nexthop_client.cc.

◆ WriteMessage()

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

◆ NexthopDBServer

friend class NexthopDBServer
friend

Definition at line 49 of file nexthop_client.h.

Member Data Documentation

◆ nexthop_list_

NexthopList NexthopDBClient::nexthop_list_
private

Definition at line 60 of file nexthop_client.h.

◆ server_

NexthopDBServer* NexthopDBClient::server_
private

Definition at line 53 of file nexthop_client.h.

◆ session_

UnixDomainSocketSession* NexthopDBClient::session_
private

Definition at line 52 of file nexthop_client.h.


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