tca_admin.cc File Reference

#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <stdlib.h>
#include <sys/time.h>
#include <string>
#include <oasys/debug/Log.h>
#include "dtn_api.h"
#include "TcaController.h"

Go to the source code of this file.

Functions

void print_usage ()
void parse_options (int argc, const char **argv)
int main (int argc, const char **argv)

Variables

static const int debug = 1
static const int MAX_TTL = 604800
static const char * progname
static std::string node_type = "mobile"
static bool tidy = false
static std::string link_id
static std::string ask_addr
static std::string adv_string
static int registry_ttl = MAX_TTL
static int control_ttl = MAX_TTL
static
TcaController::Role 
role = TcaController::TCA_MOBILE


Function Documentation

int main ( int  argc,
const char **  argv 
)

Definition at line 176 of file tca_admin.cc.

References adv_string, ask_addr, control_ttl, TcaController::init(), oasys::Log::init(), link_id, oasys::LOG_NOTICE, log_notice_p, parse_options(), registry_ttl, role, TcaController::run(), and tidy.

void parse_options ( int  argc,
const char **  argv 
)

Definition at line 70 of file tca_admin.cc.

References adv_string, ask_addr, control_ttl, link_id, MAX_TTL, node_type, print_usage(), progname, registry_ttl, role, TcaController::TCA_GATEWAY, TcaController::TCA_MOBILE, TcaController::TCA_ROUTER, and tidy.

void print_usage (  ) 

Definition at line 50 of file tca_admin.cc.

References progname.


Variable Documentation

std::string adv_string [static]

Definition at line 41 of file tca_admin.cc.

Referenced by main(), and parse_options().

std::string ask_addr [static]

Definition at line 40 of file tca_admin.cc.

Referenced by main(), and parse_options().

int control_ttl = MAX_TTL [static]

Definition at line 43 of file tca_admin.cc.

Referenced by main(), and parse_options().

const int debug = 1 [static]

Definition at line 31 of file tca_admin.cc.

std::string link_id [static]

Definition at line 39 of file tca_admin.cc.

Referenced by main(), and parse_options().

const int MAX_TTL = 604800 [static]

Definition at line 33 of file tca_admin.cc.

Referenced by parse_options().

std::string node_type = "mobile" [static]

Definition at line 37 of file tca_admin.cc.

Referenced by parse_options().

const char* progname [static]

Definition at line 36 of file tca_admin.cc.

int registry_ttl = MAX_TTL [static]

Definition at line 42 of file tca_admin.cc.

Referenced by main(), and parse_options().

TcaController::Role role = TcaController::TCA_MOBILE [static]

Definition at line 46 of file tca_admin.cc.

Referenced by main(), and parse_options().

bool tidy = false [static]

Definition at line 38 of file tca_admin.cc.

Referenced by oasys::FileSystemStore::init(), main(), and parse_options().


Generated on Sat Sep 8 08:36:19 2007 for DTN Reference Implementation by  doxygen 1.5.3