#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!" |
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.
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] = "" |
int expiration = 30 |
char* payload_str = "dtn_ping!" |
char replyto_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
char source_eid_str[DTN_MAX_ENDPOINT_ID] = "" |