Options Class Reference

#include <options.h>

List of all members.

Public Member Functions

 Options ()
bool parse (int argc, char *argv[])
void printUsage ()
void printOptions ()
std::string getProgname ()
OptionssetProgname (std::string p)
sender_id_t getSenderId ()
OptionssetSenderId (sender_id_t s)
std::string getLocalAddr ()
OptionssetLocalAddr (std::string l)
std::string getLocalSyncAddr ()
OptionssetLocalSyncAddr (std::string l)
u_int16_t getLocalPort ()
OptionssetLocalPort (u_int16_t l)
std::string getRemoteAddr ()
OptionssetRemoteAddr (std::string r)
u_int16_t getLocalSyncPort ()
OptionssetLocalSyncPort (u_int16_t l)
u_int16_t getRemotePort ()
OptionssetRemotePort (u_int16_t r)
OptionssetRemoteAddrPort (std::string addr, u_int16_t port)
std::string getDevName ()
OptionssetDevName (std::string d)
std::string getDevType ()
OptionssetDevType (std::string d)
std::string getIfconfigParamLocal ()
OptionssetIfconfigParamLocal (std::string i)
std::string getIfconfigParamRemoteNetmask ()
OptionssetIfconfigParamRemoteNetmask (std::string i)
window_size_t getSeqWindowSize ()
OptionssetSeqWindowSize (window_size_t s)
std::string getCypher ()
OptionssetCypher (std::string c)
std::string getAuthAlgo ()
OptionssetAuthAlgo (std::string a)

Private Attributes

Mutex mutex
std::string progname_
sender_id_t sender_id_
std::string local_addr_
std::string local_sync_addr_
u_int16_t local_port_
u_int16_t local_sync_port_
std::string remote_addr_
u_int16_t remote_port_
std::string dev_name_
std::string dev_type_
std::string ifconfig_param_local_
std::string ifconfig_param_remote_netmask_
window_size_t seq_window_size_
std::string cypher_
std::string auth_algo_


Constructor & Destructor Documentation

Options::Options (  ) 


Member Function Documentation

bool Options::parse ( int  argc,
char *  argv[] 
)

void Options::printUsage (  ) 

void Options::printOptions (  ) 

std::string Options::getProgname (  ) 

Options & Options::setProgname ( std::string  p  ) 

sender_id_t Options::getSenderId (  ) 

Options & Options::setSenderId ( sender_id_t  s  ) 

std::string Options::getLocalAddr (  ) 

Options & Options::setLocalAddr ( std::string  l  ) 

std::string Options::getLocalSyncAddr (  ) 

Options & Options::setLocalSyncAddr ( std::string  l  ) 

u_int16_t Options::getLocalPort (  ) 

Options & Options::setLocalPort ( u_int16_t  l  ) 

std::string Options::getRemoteAddr (  ) 

Options & Options::setRemoteAddr ( std::string  r  ) 

u_int16_t Options::getLocalSyncPort (  ) 

Options & Options::setLocalSyncPort ( u_int16_t  l  ) 

u_int16_t Options::getRemotePort (  ) 

Options & Options::setRemotePort ( u_int16_t  r  ) 

Options & Options::setRemoteAddrPort ( std::string  addr,
u_int16_t  port 
)

std::string Options::getDevName (  ) 

Options & Options::setDevName ( std::string  d  ) 

std::string Options::getDevType (  ) 

Options & Options::setDevType ( std::string  d  ) 

std::string Options::getIfconfigParamLocal (  ) 

Options & Options::setIfconfigParamLocal ( std::string  i  ) 

std::string Options::getIfconfigParamRemoteNetmask (  ) 

Options & Options::setIfconfigParamRemoteNetmask ( std::string  i  ) 

window_size_t Options::getSeqWindowSize (  ) 

Options & Options::setSeqWindowSize ( window_size_t  s  ) 

std::string Options::getCypher (  ) 

Options & Options::setCypher ( std::string  c  ) 

std::string Options::getAuthAlgo (  ) 

Options & Options::setAuthAlgo ( std::string  a  ) 


Member Data Documentation

Mutex Options::mutex [private]

std::string Options::progname_ [private]

sender_id_t Options::sender_id_ [private]

std::string Options::local_addr_ [private]

std::string Options::local_sync_addr_ [private]

u_int16_t Options::local_port_ [private]

u_int16_t Options::local_sync_port_ [private]

std::string Options::remote_addr_ [private]

u_int16_t Options::remote_port_ [private]

std::string Options::dev_name_ [private]

std::string Options::dev_type_ [private]

std::string Options::ifconfig_param_local_ [private]

std::string Options::ifconfig_param_remote_netmask_ [private]

window_size_t Options::seq_window_size_ [private]

std::string Options::cypher_ [private]

std::string Options::auth_algo_ [private]


The documentation for this class was generated from the following files:
Generated on Mon Dec 3 11:49:25 2007 for anytun by  doxygen 1.5.1