dtnping.c File Reference

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

Go to the source code of this file.

Functions

void usage ()
void doOptions (int argc, const char **argv)
int main (int argc, const char **argv)

Variables

const char * progname
int sleepVal = 1
int count = 0
int expiration = 30
char dest_eid_str [DTN_MAX_ENDPOINT_ID] = ""
char source_eid_str [DTN_MAX_ENDPOINT_ID] = ""
char replyto_eid_str [DTN_MAX_ENDPOINT_ID] = ""
char * payload_str = "dtn_ping!"


Function Documentation

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

Definition at line 245 of file dtnping.c.

References count, dest_eid_str, expiration, progname, replyto_eid_str, sleepVal, source_eid_str, and usage().

Referenced by main().

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

Definition at line 70 of file dtnping.c.

References bundle_id, count, debug, dest_eid_str, doOptions(), dtn_build_local_eid(), dtn_close(), dtn_copy_eid(), dtn_errno(), DTN_ETIMEOUT, dtn_free_payload(), dtn_open(), dtn_parse_eid_string(), DTN_PAYLOAD_MEM, dtn_recv(), DTN_REG_DEFER, DTN_REGID_NONE, dtn_register(), dtn_send(), dtn_set_payload(), dtn_strerror(), DTN_SUCCESS, expiration, dtnsim::gettimeofday(), handle, payload_buf, payload_str, regid, reply_payload, reply_spec, replyto_eid_str, sleepVal, source_eid_str, and dtn_endpoint_id_t::uri.

void usage (  ) 

Definition at line 52 of file dtnping.c.

References progname.


Variable Documentation

int count = 0

Definition at line 62 of file dtnping.c.

Referenced by dtn::Link::create_link(), dtn::DTND::daemonize(), doOptions(), dtn::LinkCommand::exec(), dtn::TcaRouter::fwd_to_all(), dtn::TableBasedRouter::fwd_to_matching(), dtn::TcaRouter::fwd_to_matching_r(), dtn::RouteTable::get_matching(), dtn::RegistrationTable::get_matching(), main(), dtn::TCPConvergenceLayer::parse_link_params(), dtn::StreamConvergenceLayer::parse_link_params(), parse_options(), oasys::StackTrace::print_current_trace(), dtn::FragmentManager::proactively_fragment(), read_and_process(), dtn::LinkScheduleEstimator::refine_period(), dtn::TableBasedRouter::should_fwd(), and oasys::FileSystemTable::size().

char dest_eid_str[DTN_MAX_ENDPOINT_ID] = ""

Definition at line 64 of file dtnping.c.

Referenced by doOptions(), and main().

int expiration = 30

Definition at line 63 of file dtnping.c.

char* payload_str = "dtn_ping!"

Definition at line 67 of file dtnping.c.

Referenced by main().

const char* progname

Definition at line 49 of file dtnping.c.

char replyto_eid_str[DTN_MAX_ENDPOINT_ID] = ""

Definition at line 66 of file dtnping.c.

Referenced by doOptions(), and main().

int sleepVal = 1

Definition at line 61 of file dtnping.c.

char source_eid_str[DTN_MAX_ENDPOINT_ID] = ""

Definition at line 65 of file dtnping.c.

Referenced by doOptions(), and main().


Generated on Fri Dec 22 14:48:01 2006 for DTN Reference Implementation by  doxygen 1.5.1