OpenSDN source code
|
#include <crypt_tunnel.h>
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 |
CryptTunnelEntry * | entry () 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 |
Definition at line 158 of file crypt_tunnel.h.
Enumerator | |
---|---|
CREATE_TUNNEL | |
UPDATE_TUNNEL | |
MONITOR_TUNNEL | |
DELETE_TUNNEL |
Definition at line 160 of file crypt_tunnel.h.
CryptTunnelTaskBase::CryptTunnelTaskBase | ( | CryptTunnelEntry * | entry | ) |
Definition at line 304 of file crypt_tunnel.cc.
|
virtual |
Definition at line 308 of file crypt_tunnel.cc.
|
inline |
Definition at line 191 of file crypt_tunnel.h.
|
pure virtual |
Implemented in CryptTunnelTask.
|
pure virtual |
Implemented in CryptTunnelTask.
|
private |
|
inline |
Definition at line 193 of file crypt_tunnel.h.
|
inlinevirtual |
Reimplemented in CryptTunnelTask.
Definition at line 192 of file crypt_tunnel.h.
|
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.
|
pure virtual |
Implemented in CryptTunnelTask.
void CryptTunnelTaskBase::set_tunnel_entry | ( | CryptTunnelEntry * | entry | ) |
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.
|
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 |
|
inlinevirtual |
Definition at line 177 of file crypt_tunnel.h.
|
friend |
Definition at line 197 of file crypt_tunnel.h.
|
protected |
Definition at line 203 of file crypt_tunnel.h.
|
protected |
Definition at line 207 of file crypt_tunnel.h.
|
protected |
Definition at line 200 of file crypt_tunnel.h.
|
protected |
Definition at line 205 of file crypt_tunnel.h.