#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 |
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 | ( | ) |
std::string adv_string [static] |
std::string ask_addr [static] |
int control_ttl = MAX_TTL [static] |
const int debug = 1 [static] |
Definition at line 31 of file tca_admin.cc.
std::string link_id [static] |
const int MAX_TTL = 604800 [static] |
std::string node_type = "mobile" [static] |
const char* progname [static] |
Definition at line 36 of file tca_admin.cc.
int registry_ttl = MAX_TTL [static] |
TcaController::Role role = TcaController::TCA_MOBILE [static] |
Definition at line 38 of file tca_admin.cc.
Referenced by oasys::FileSystemStore::init(), main(), and parse_options().