TcaController.cc File Reference

#include <unistd.h>
#include <errno.h>
#include "dtn_api.h"
#include "TcaController.h"

Go to the source code of this file.

Functions

bool make_spec (dtn_bundle_spec_t &spec, std::string source, std::string dest, std::string replyto, int expiration, dtn_bundle_priority_t priority=COS_NORMAL, dtn_bundle_delivery_opts_t dopts=DOPTS_NONE)
static bool check_nargs (const dtn::TcaControlBundle &cb, uint n_expected)

Variables

static const int debug = 1
static const int RECV_TIMEOUT = 30000
static const u_int32_t REG_EXPIRATION_TIME = 2000000


Function Documentation

static bool check_nargs ( const dtn::TcaControlBundle cb,
uint  n_expected 
) [static]

Definition at line 92 of file TcaController.cc.

References dtn::TcaControlBundle::args_, and dtn::TcaControlBundle::str().

Referenced by TcaController::handle_link_announce(), and TcaController::route_reg().

bool make_spec ( dtn_bundle_spec_t spec,
std::string  source,
std::string  dest,
std::string  replyto,
int  expiration,
dtn_bundle_priority_t  priority = COS_NORMAL,
dtn_bundle_delivery_opts_t  dopts = DOPTS_NONE 
)

Definition at line 51 of file TcaController.cc.

References dtn_bundle_spec_t::dest, dtn_bundle_spec_t::dopts, dtn_parse_eid_string(), dtn_bundle_spec_t::expiration, dtn_bundle_spec_t::priority, dtn_bundle_spec_t::replyto, and dtn_bundle_spec_t::source.

Referenced by TcaController::gate_reg().


Variable Documentation

const int debug = 1 [static]

Definition at line 30 of file TcaController.cc.

const int RECV_TIMEOUT = 30000 [static]

Definition at line 35 of file TcaController.cc.

Referenced by TcaController::run().

const u_int32_t REG_EXPIRATION_TIME = 2000000 [static]

Definition at line 44 of file TcaController.cc.

Referenced by TcaController::dtn_reg().


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