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

#include <crypt_tunnel.h>

Inheritance diagram for CryptTunnelTask:
Collaboration diagram for CryptTunnelTask:

Public Types

typedef InstanceTaskExecvp CryptTunnelProcessTunnel
 
- Public Types inherited from CryptTunnelTaskBase
enum  CommandType { CREATE_TUNNEL = 0, UPDATE_TUNNEL, MONITOR_TUNNEL, DELETE_TUNNEL }
 

Public Member Functions

 CryptTunnelTask (CryptTunnelEntry *entry)
 
virtual ~CryptTunnelTask ()
 
virtual bool CreateTunnelTask ()
 
virtual bool DestroyTunnelTask ()
 
virtual bool RunTunnelTask (CommandType cmd_type)
 
virtual bool StopTunnelTask ()
 
virtual bool IsRunning () const
 
- Public Member Functions inherited from CryptTunnelTaskBase
 CryptTunnelTaskBase (CryptTunnelEntry *entry)
 
virtual ~CryptTunnelTaskBase ()
 
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 ()
 
CryptTunnelEntryentry () const
 
const std::string & last_update_time () const
 

Static Public Attributes

static const std::string kCryptTunnelCmd
 

Private Member Functions

void UpdateTunnelTaskCommand (CommandType cmd_type)
 
 DISALLOW_COPY_AND_ASSIGN (CryptTunnelTask)
 

Private Attributes

boost::scoped_ptr
< CryptTunnelProcessTunnel
task_
 

Friends

class CryptTunnelTable
 

Additional Inherited Members

- Protected Attributes inherited from CryptTunnelTaskBase
CryptTunnelEntryRef entry_
 
bool active_
 
std::string last_update_time_
 
bool deleted_
 

Detailed Description

Definition at line 215 of file crypt_tunnel.h.

Member Typedef Documentation

Constructor & Destructor Documentation

CryptTunnelTask::CryptTunnelTask ( CryptTunnelEntry entry)

Definition at line 370 of file crypt_tunnel.cc.

CryptTunnelTask::~CryptTunnelTask ( )
virtual

Definition at line 375 of file crypt_tunnel.cc.

Member Function Documentation

bool CryptTunnelTask::CreateTunnelTask ( )
virtual

Implements CryptTunnelTaskBase.

Definition at line 378 of file crypt_tunnel.cc.

Here is the call graph for this function:

bool CryptTunnelTask::DestroyTunnelTask ( )
virtual

Implements CryptTunnelTaskBase.

Definition at line 402 of file crypt_tunnel.cc.

Here is the call graph for this function:

CryptTunnelTask::DISALLOW_COPY_AND_ASSIGN ( CryptTunnelTask  )
private
bool CryptTunnelTask::IsRunning ( ) const
virtual

Reimplemented from CryptTunnelTaskBase.

Definition at line 467 of file crypt_tunnel.cc.

bool CryptTunnelTask::RunTunnelTask ( CommandType  cmd_type)
virtual

Implements CryptTunnelTaskBase.

Definition at line 418 of file crypt_tunnel.cc.

Here is the call graph for this function:

bool CryptTunnelTask::StopTunnelTask ( )
virtual

Implements CryptTunnelTaskBase.

Definition at line 423 of file crypt_tunnel.cc.

void CryptTunnelTask::UpdateTunnelTaskCommand ( CommandType  cmd_type)
private

Definition at line 428 of file crypt_tunnel.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class CryptTunnelTable
friend

Definition at line 230 of file crypt_tunnel.h.

Member Data Documentation

const std::string CryptTunnelTask::kCryptTunnelCmd
static

Definition at line 218 of file crypt_tunnel.h.

boost::scoped_ptr<CryptTunnelProcessTunnel> CryptTunnelTask::task_
private

Definition at line 234 of file crypt_tunnel.h.


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