OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 LifetimeActordeleter ()
 
virtual LifetimeManagerlifetime_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)
 
TcpServerserver ()
 
Endpoint endpoint ()
 
bool SendSandesh (Sandesh *snh)
 
void set_session (SandeshSession *session)
 
SandeshSessionsession () const
 
SandeshStateMachinestate_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< DeleteActordeleter_
 
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 99 of file sandesh_connection.h.

Constructor & Destructor Documentation

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

Definition at line 148 of file sandesh_connection.cc.

SandeshServerConnection::~SandeshServerConnection ( )
virtual

Definition at line 155 of file sandesh_connection.cc.

Member Function Documentation

LifetimeActor * SandeshServerConnection::deleter ( )
virtual

Implements SandeshConnection.

Definition at line 229 of file sandesh_connection.cc.

void SandeshServerConnection::Destroy ( )
virtual

Implements SandeshConnection.

Definition at line 215 of file sandesh_connection.cc.

Here is the call graph for this function:

SandeshServerConnection::DISALLOW_COPY_AND_ASSIGN ( SandeshServerConnection  )
private
LifetimeManager * SandeshServerConnection::lifetime_manager ( )
virtual

Implements SandeshConnection.

Definition at line 206 of file sandesh_connection.cc.

Here is the call graph for this function:

void SandeshServerConnection::ManagedDelete ( )
virtual

Implements SandeshConnection.

Definition at line 158 of file sandesh_connection.cc.

void SandeshServerConnection::ProcessDisconnect ( SandeshSession session)
virtual

Implements SandeshConnection.

Definition at line 197 of file sandesh_connection.cc.

Here is the call graph for this function:

bool SandeshServerConnection::ProcessResourceUpdate ( bool  res)
virtual

Reimplemented from SandeshConnection.

Definition at line 177 of file sandesh_connection.cc.

Here is the call graph for this function:

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 162 of file sandesh_connection.cc.

Here is the call graph for this function:

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

Implements SandeshConnection.

Definition at line 186 of file sandesh_connection.cc.

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 119 of file sandesh_connection.h.

LifetimeRef<SandeshServerConnection> SandeshServerConnection::server_delete_ref_
private

Definition at line 121 of file sandesh_connection.h.


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