OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Enumerator
CREATE_TUNNEL 
UPDATE_TUNNEL 
MONITOR_TUNNEL 
DELETE_TUNNEL 

Definition at line 160 of file crypt_tunnel.h.

Constructor & Destructor Documentation

CryptTunnelTaskBase::CryptTunnelTaskBase ( CryptTunnelEntry entry)

Definition at line 304 of file crypt_tunnel.cc.

CryptTunnelTaskBase::~CryptTunnelTaskBase ( )
virtual

Definition at line 308 of file crypt_tunnel.cc.

Member Function Documentation

bool CryptTunnelTaskBase::active ( )
inline

Definition at line 191 of file crypt_tunnel.h.

virtual bool CryptTunnelTaskBase::CreateTunnelTask ( )
pure virtual

Implemented in CryptTunnelTask.

virtual bool CryptTunnelTaskBase::DestroyTunnelTask ( )
pure virtual

Implemented in CryptTunnelTask.

CryptTunnelTaskBase::DISALLOW_COPY_AND_ASSIGN ( CryptTunnelTaskBase  )
private
CryptTunnelEntry* CryptTunnelTaskBase::entry ( ) const
inline

Definition at line 193 of file crypt_tunnel.h.

virtual bool CryptTunnelTaskBase::IsRunning ( ) const
inlinevirtual

Reimplemented in CryptTunnelTask.

Definition at line 192 of file crypt_tunnel.h.

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

Definition at line 194 of file crypt_tunnel.h.

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

Definition at line 346 of file crypt_tunnel.cc.

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

Definition at line 338 of file crypt_tunnel.cc.

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

Implemented in CryptTunnelTask.

void CryptTunnelTaskBase::set_tunnel_entry ( CryptTunnelEntry entry)

Definition at line 323 of file crypt_tunnel.cc.

Here is the call graph for this function:

void CryptTunnelTaskBase::SetTunnelEntry ( CryptTunnelEntry entry)

Definition at line 353 of file crypt_tunnel.cc.

void CryptTunnelTaskBase::StopTask ( CryptTunnelEntry service)

Definition at line 360 of file crypt_tunnel.cc.

virtual bool CryptTunnelTaskBase::StopTunnelTask ( )
pure virtual

Implemented in CryptTunnelTask.

std::string CryptTunnelTaskBase::to_string ( )

Definition at line 332 of file crypt_tunnel.cc.

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:

virtual bool CryptTunnelTaskBase::UpdateTunnelTask ( )
inlinevirtual

Definition at line 177 of file crypt_tunnel.h.

Friends And Related Function Documentation

friend class CryptTunnelTable
friend

Definition at line 197 of file crypt_tunnel.h.

Member Data Documentation

bool CryptTunnelTaskBase::active_
protected

Definition at line 203 of file crypt_tunnel.h.

bool CryptTunnelTaskBase::deleted_
protected

Definition at line 207 of file crypt_tunnel.h.

CryptTunnelEntryRef CryptTunnelTaskBase::entry_
protected

Definition at line 200 of file crypt_tunnel.h.

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: