OpenSDN source code
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::ControlInterface ( )
inline

Definition at line 24 of file control_interface.h.

◆ ~ControlInterface()

virtual ControlInterface::~ControlInterface ( )
inlinevirtual

Definition at line 25 of file control_interface.h.

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

ControlInterface::DISALLOW_COPY_AND_ASSIGN ( ControlInterface  )
private

◆ EncapsulationLength()

virtual uint32_t ControlInterface::EncapsulationLength ( ) const
pure virtual

Implemented in VrouterControlInterface.

◆ Init()

void ControlInterface::Init ( PktHandler pkt_handler)
inline

Definition at line 27 of file control_interface.h.

Here is the call graph for this function:

◆ InitControlInterface()

virtual void ControlInterface::InitControlInterface ( )
pure virtual

◆ IoShutdown()

void ControlInterface::IoShutdown ( )
inline

Definition at line 33 of file control_interface.h.

Here is the call graph for this function:

◆ IoShutdownControlInterface()

virtual void ControlInterface::IoShutdownControlInterface ( )
pure virtual

Implemented in Pkt0Socket, and Pkt0Interface.

◆ Name()

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

Implemented in Pkt0Socket, and Pkt0Interface.

◆ pkt_handler()

PktHandler* ControlInterface::pkt_handler ( ) const
inline

Definition at line 61 of file control_interface.h.

◆ Process()

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:

◆ Send()

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

Implemented in VrouterControlInterface.

◆ Shutdown()

void ControlInterface::Shutdown ( )
inline

Definition at line 32 of file control_interface.h.

Here is the call graph for this function:

◆ ShutdownControlInterface()

virtual void ControlInterface::ShutdownControlInterface ( )
pure virtual

Implemented in Pkt0Socket, and Pkt0Interface.

Member Data Documentation

◆ kMaxPacketSize

const uint32_t ControlInterface::kMaxPacketSize = 9060
static

Definition at line 22 of file control_interface.h.

◆ pkt_handler_

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: