OpenSDN source code
SandeshServerConnection Class Reference

#include <sandesh_connection.h>

Inheritance diagram for SandeshServerConnection:
Collaboration diagram for SandeshServerConnection:

Classes

class  DeleteActor
 

Public Member Functions

 SandeshServerConnection (TcpServer *server, Endpoint endpoint, int task_instance, int task_id)
 
virtual ~SandeshServerConnection ()
 
virtual bool ProcessResourceUpdate (bool res)
 
virtual bool ProcessSandeshMessage (const SandeshMessage *msg, bool resource)
 
virtual bool ProcessSandeshCtrlMessage (const std::string &msg, const SandeshHeader &header, const std::string sandesh_name, const uint32_t header_offset)
 
virtual void ProcessDisconnect (SandeshSession *session)
 
virtual void ManagedDelete ()
 
virtual LifetimeActor * deleter ()
 
virtual LifetimeManager * lifetime_manager ()
 
virtual void Destroy ()
 
- Public Member Functions inherited from SandeshConnection
 SandeshConnection (const char *prefix, TcpServer *server, Endpoint endpoint, int task_instance, int task_id)
 
virtual ~SandeshConnection ()
 
void AcceptSession (SandeshSession *session)
 
virtual bool ReceiveMsg (const std::string &msg, SandeshSession *session)
 
TcpServer * server ()
 
Endpoint endpoint ()
 
bool SendSandesh (Sandesh *snh)
 
void set_session (SandeshSession *session)
 
SandeshSession * session () const
 
SandeshStateMachine * state_machine () const
 
std::string StateName () const
 
int GetTaskInstance () const
 
int GetTaskId () const
 
void Initialize ()
 
void Shutdown ()
 
bool MayDelete () const
 
void SetAdminState (bool down)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (SandeshServerConnection)
 

Private Attributes

boost::scoped_ptr< DeleteActor > deleter_
 
LifetimeRef< SandeshServerConnection > server_delete_ref_
 

Additional Inherited Members

- Public Types inherited from SandeshConnection
typedef boost::asio::ip::tcp::endpoint Endpoint
 
- Protected Attributes inherited from SandeshConnection
bool is_deleted_
 

Detailed Description

Definition at line 100 of file sandesh_connection.h.

Constructor & Destructor Documentation

◆ SandeshServerConnection()

SandeshServerConnection::SandeshServerConnection ( TcpServer *  server,
Endpoint  endpoint,
int  task_instance,
int  task_id 
)

Definition at line 149 of file sandesh_connection.cc.

◆ ~SandeshServerConnection()

SandeshServerConnection::~SandeshServerConnection ( )
virtual

Definition at line 156 of file sandesh_connection.cc.

Member Function Documentation

◆ deleter()

LifetimeActor * SandeshServerConnection::deleter ( )
virtual

Implements SandeshConnection.

Definition at line 230 of file sandesh_connection.cc.

◆ Destroy()

void SandeshServerConnection::Destroy ( )
virtual

Implements SandeshConnection.

Definition at line 216 of file sandesh_connection.cc.

Here is the call graph for this function:

◆ DISALLOW_COPY_AND_ASSIGN()

SandeshServerConnection::DISALLOW_COPY_AND_ASSIGN ( SandeshServerConnection  )
private

◆ lifetime_manager()

LifetimeManager * SandeshServerConnection::lifetime_manager ( )
virtual

Implements SandeshConnection.

Definition at line 207 of file sandesh_connection.cc.

Here is the call graph for this function:

◆ ManagedDelete()

void SandeshServerConnection::ManagedDelete ( )
virtual

Implements SandeshConnection.

Definition at line 159 of file sandesh_connection.cc.

◆ ProcessDisconnect()

void SandeshServerConnection::ProcessDisconnect ( SandeshSession *  session)
virtual

Implements SandeshConnection.

Definition at line 198 of file sandesh_connection.cc.

Here is the call graph for this function:

◆ ProcessResourceUpdate()

bool SandeshServerConnection::ProcessResourceUpdate ( bool  res)
virtual

Reimplemented from SandeshConnection.

Definition at line 178 of file sandesh_connection.cc.

Here is the call graph for this function:

◆ ProcessSandeshCtrlMessage()

bool SandeshServerConnection::ProcessSandeshCtrlMessage ( const std::string &  msg,
const SandeshHeader &  header,
const std::string  sandesh_name,
const uint32_t  header_offset 
)
virtual

Implements SandeshConnection.

Definition at line 163 of file sandesh_connection.cc.

Here is the call graph for this function:

◆ ProcessSandeshMessage()

bool SandeshServerConnection::ProcessSandeshMessage ( const SandeshMessage *  msg,
bool  resource 
)
virtual

Implements SandeshConnection.

Definition at line 187 of file sandesh_connection.cc.

Here is the call graph for this function:

Member Data Documentation

◆ deleter_

boost::scoped_ptr<DeleteActor> SandeshServerConnection::deleter_
private

Definition at line 121 of file sandesh_connection.h.

◆ server_delete_ref_

LifetimeRef<SandeshServerConnection> SandeshServerConnection::server_delete_ref_
private

Definition at line 122 of file sandesh_connection.h.


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