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

#include <control_interface.h>

Inheritance diagram for ControlInterface:
Collaboration diagram for ControlInterface:

Public Member Functions

 ControlInterface ()
 
virtual ~ControlInterface ()
 
void Init (PktHandler *pkt_handler)
 
void Shutdown ()
 
void IoShutdown ()
 
virtual void InitControlInterface ()=0
 
virtual void ShutdownControlInterface ()=0
 
virtual void IoShutdownControlInterface ()=0
 
virtual const std::string & Name () const =0
 
virtual uint32_t EncapsulationLength () const =0
 
virtual int Send (const AgentHdr &hdr, const PacketBufferPtr &pkt)=0
 
bool Process (const AgentHdr &hdr, const PacketBufferPtr &pkt)
 
PktHandlerpkt_handler () const
 

Static Public Attributes

static const uint32_t kMaxPacketSize = 9060
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (ControlInterface)
 

Private Attributes

PktHandlerpkt_handler_
 

Detailed Description

Definition at line 20 of file control_interface.h.

Constructor & Destructor Documentation

ControlInterface::ControlInterface ( )
inline

Definition at line 24 of file control_interface.h.

virtual ControlInterface::~ControlInterface ( )
inlinevirtual

Definition at line 25 of file control_interface.h.

Member Function Documentation

ControlInterface::DISALLOW_COPY_AND_ASSIGN ( ControlInterface  )
private
virtual uint32_t ControlInterface::EncapsulationLength ( ) const
pure virtual

Implemented in VrouterControlInterface.

void ControlInterface::Init ( PktHandler pkt_handler)
inline

Definition at line 27 of file control_interface.h.

Here is the call graph for this function:

virtual void ControlInterface::InitControlInterface ( )
pure virtual
void ControlInterface::IoShutdown ( )
inline

Definition at line 33 of file control_interface.h.

Here is the call graph for this function:

virtual void ControlInterface::IoShutdownControlInterface ( )
pure virtual

Implemented in Pkt0Socket, and Pkt0Interface.

virtual const std::string& ControlInterface::Name ( ) const
pure virtual

Implemented in Pkt0Socket, and Pkt0Interface.

PktHandler* ControlInterface::pkt_handler ( ) const
inline

Definition at line 61 of file control_interface.h.

bool ControlInterface::Process ( const AgentHdr hdr,
const PacketBufferPtr pkt 
)
inline

Definition at line 56 of file control_interface.h.

Here is the call graph for this function:

virtual int ControlInterface::Send ( const AgentHdr hdr,
const PacketBufferPtr pkt 
)
pure virtual

Implemented in VrouterControlInterface.

void ControlInterface::Shutdown ( )
inline

Definition at line 32 of file control_interface.h.

Here is the call graph for this function:

virtual void ControlInterface::ShutdownControlInterface ( )
pure virtual

Implemented in Pkt0Socket, and Pkt0Interface.

Member Data Documentation

const uint32_t ControlInterface::kMaxPacketSize = 9060
static

Definition at line 22 of file control_interface.h.

PktHandler* ControlInterface::pkt_handler_
private

Definition at line 63 of file control_interface.h.


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