OpenSDN source code
CryptTunnelTaskBase Class Referenceabstract

#include <crypt_tunnel.h>

Inheritance diagram for CryptTunnelTaskBase:
Collaboration diagram for CryptTunnelTaskBase:

Public Types

enum  CommandType { CREATE_TUNNEL = 0 , UPDATE_TUNNEL , MONITOR_TUNNEL , DELETE_TUNNEL }
 

Public Member Functions

 CryptTunnelTaskBase (CryptTunnelEntry *entry)
 
virtual ~CryptTunnelTaskBase ()
 
virtual bool CreateTunnelTask ()=0
 
virtual bool DestroyTunnelTask ()=0
 
virtual bool RunTunnelTask (CommandType cmd_type)=0
 
virtual bool StopTunnelTask ()=0
 
virtual bool UpdateTunnelTask ()
 
void OnRead (const std::string &data)
 
void OnExit (const boost::system::error_code &ec)
 
void SetTunnelEntry (CryptTunnelEntry *entry)
 
void StopTask (CryptTunnelEntry *service)
 
void UpdateTunnel (const CryptTunnelEntry *entry, bool available) const
 
void set_tunnel_entry (CryptTunnelEntry *entry)
 
std::string to_string ()
 
bool active ()
 
virtual bool IsRunning () const
 
CryptTunnelEntryentry () const
 
const std::string & last_update_time () const
 

Protected Attributes

CryptTunnelEntryRef entry_
 
bool active_
 
std::string last_update_time_
 
bool deleted_
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (CryptTunnelTaskBase)
 

Friends

class CryptTunnelTable
 

Detailed Description

Definition at line 158 of file crypt_tunnel.h.

Member Enumeration Documentation

◆ CommandType

Enumerator
CREATE_TUNNEL 
UPDATE_TUNNEL 
MONITOR_TUNNEL 
DELETE_TUNNEL 

Definition at line 160 of file crypt_tunnel.h.

Constructor & Destructor Documentation

◆ CryptTunnelTaskBase()

CryptTunnelTaskBase::CryptTunnelTaskBase ( CryptTunnelEntry entry)

Definition at line 304 of file crypt_tunnel.cc.

◆ ~CryptTunnelTaskBase()

CryptTunnelTaskBase::~CryptTunnelTaskBase ( )
virtual

Definition at line 308 of file crypt_tunnel.cc.

Member Function Documentation

◆ active()

bool CryptTunnelTaskBase::active ( )
inline

Definition at line 191 of file crypt_tunnel.h.

◆ CreateTunnelTask()

virtual bool CryptTunnelTaskBase::CreateTunnelTask ( )
pure virtual

Implemented in CryptTunnelTask.

◆ DestroyTunnelTask()

virtual bool CryptTunnelTaskBase::DestroyTunnelTask ( )
pure virtual

Implemented in CryptTunnelTask.

◆ DISALLOW_COPY_AND_ASSIGN()

CryptTunnelTaskBase::DISALLOW_COPY_AND_ASSIGN ( CryptTunnelTaskBase  )
private

◆ entry()

CryptTunnelEntry* CryptTunnelTaskBase::entry ( ) const
inline

Definition at line 193 of file crypt_tunnel.h.

◆ IsRunning()

virtual bool CryptTunnelTaskBase::IsRunning ( ) const
inlinevirtual

Reimplemented in CryptTunnelTask.

Definition at line 192 of file crypt_tunnel.h.

◆ last_update_time()

const std::string& CryptTunnelTaskBase::last_update_time ( ) const
inline

Definition at line 194 of file crypt_tunnel.h.

◆ OnExit()

void CryptTunnelTaskBase::OnExit ( const boost::system::error_code &  ec)

Definition at line 346 of file crypt_tunnel.cc.

◆ OnRead()

void CryptTunnelTaskBase::OnRead ( const std::string &  data)

Definition at line 338 of file crypt_tunnel.cc.

◆ RunTunnelTask()

virtual bool CryptTunnelTaskBase::RunTunnelTask ( CommandType  cmd_type)
pure virtual

Implemented in CryptTunnelTask.

◆ set_tunnel_entry()

void CryptTunnelTaskBase::set_tunnel_entry ( CryptTunnelEntry entry)

Definition at line 323 of file crypt_tunnel.cc.

Here is the call graph for this function:

◆ SetTunnelEntry()

void CryptTunnelTaskBase::SetTunnelEntry ( CryptTunnelEntry entry)

Definition at line 353 of file crypt_tunnel.cc.

Here is the call graph for this function:

◆ StopTask()

void CryptTunnelTaskBase::StopTask ( CryptTunnelEntry service)

Definition at line 360 of file crypt_tunnel.cc.

Here is the call graph for this function:

◆ StopTunnelTask()

virtual bool CryptTunnelTaskBase::StopTunnelTask ( )
pure virtual

Implemented in CryptTunnelTask.

◆ to_string()

std::string CryptTunnelTaskBase::to_string ( )

Definition at line 332 of file crypt_tunnel.cc.

◆ UpdateTunnel()

void CryptTunnelTaskBase::UpdateTunnel ( const CryptTunnelEntry entry,
bool  available 
) const

Definition at line 312 of file crypt_tunnel.cc.

Here is the call graph for this function:

◆ UpdateTunnelTask()

virtual bool CryptTunnelTaskBase::UpdateTunnelTask ( )
inlinevirtual

Definition at line 177 of file crypt_tunnel.h.

Friends And Related Function Documentation

◆ CryptTunnelTable

friend class CryptTunnelTable
friend

Definition at line 197 of file crypt_tunnel.h.

Member Data Documentation

◆ active_

bool CryptTunnelTaskBase::active_
protected

Definition at line 203 of file crypt_tunnel.h.

◆ deleted_

bool CryptTunnelTaskBase::deleted_
protected

Definition at line 207 of file crypt_tunnel.h.

◆ entry_

CryptTunnelEntryRef CryptTunnelTaskBase::entry_
protected

Definition at line 200 of file crypt_tunnel.h.

◆ last_update_time_

std::string CryptTunnelTaskBase::last_update_time_
protected

Definition at line 205 of file crypt_tunnel.h.


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