#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"
#include "dtn_types.h"
#include <vector>
#include <netinet/in.h>
#include <rpc/rpc.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 179 of file tca_admin.cc.
References adv_string, ask_addr, control_ttl, TcaController::init(), link_id, parse_options(), registry_ttl, role, TcaController::run(), and tidy.
void parse_options | ( | int | argc, | |
const char ** | argv | |||
) |
Definition at line 73 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 53 of file tca_admin.cc.
References progname.
std::string adv_string [static] |
Definition at line 44 of file tca_admin.cc.
Referenced by main(), and parse_options().
std::string ask_addr [static] |
Definition at line 43 of file tca_admin.cc.
Referenced by main(), and parse_options().
int control_ttl = MAX_TTL [static] |
Definition at line 46 of file tca_admin.cc.
Referenced by main(), and parse_options().
const int debug = 1 [static] |
Definition at line 34 of file tca_admin.cc.
std::string link_id [static] |
Definition at line 42 of file tca_admin.cc.
Referenced by main(), and parse_options().
const int MAX_TTL = 604800 [static] |
Definition at line 36 of file tca_admin.cc.
Referenced by parse_options().
std::string node_type = "mobile" [static] |
Definition at line 40 of file tca_admin.cc.
Referenced by parse_options().
const char* progname [static] |
Definition at line 39 of file tca_admin.cc.
int registry_ttl = MAX_TTL [static] |
Definition at line 45 of file tca_admin.cc.
Referenced by main(), and parse_options().
TcaController::Role role = TcaController::TCA_MOBILE [static] |
Definition at line 49 of file tca_admin.cc.
Referenced by main(), and parse_options().
Definition at line 41 of file tca_admin.cc.
Referenced by main(), and parse_options().