#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include "dtn_api.h"
#include "dtnping.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 | expiration = 30 |
int | wait_after_done = 0 |
char | register_eid_str [DTN_MAX_ENDPOINT_ID] = "" |
char | replyto_eid_str [DTN_MAX_ENDPOINT_ID] = "" |
void doOptions | ( | int | argc, | |
const char ** | argv | |||
) |
Definition at line 203 of file dtnreporter.c.
References expiration, progname, register_eid_str, usage(), and wait_after_done.
int main | ( | int | argc, | |
const char ** | argv | |||
) |
Definition at line 52 of file dtnreporter.c.
References dtn_bundle_status_report_t::bundle_id, dtn_bundle_id_t::creation_ts, debug, dtn_bundle_status_report_t::deletion_ts, dtn_bundle_status_report_t::delivery_ts, 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_DROP, DTN_REGID_NONE, dtn_register(), dtn_strerror(), DTN_SUCCESS, DTNTIME_OFFSET, dtn_reg_info_t::endpoint, dtn_reg_info_t::expiration, dtn_bundle_status_report_t::flags, dtn_reg_info_t::flags, dtn_bundle_status_report_t::forwarding_ts, dtnsim::gettimeofday(), handle, dtn_bundle_status_report_t::receipt_ts, dtn_reg_info_t::regid, regid, register_eid_str, reply_payload, reply_spec, dtn_timestamp_t::secs, dtn_timestamp_t::seqno, dtn_bundle_id_t::source, dtn_bundle_spec_t::source, STATUS_DELETED, STATUS_DELIVERED, STATUS_FORWARDED, STATUS_RECEIVED, dtn_bundle_payload_t::status_report, and dtn_endpoint_id_t::uri.
void usage | ( | ) |
Definition at line 36 of file dtnreporter.c.
References progname.
int expiration = 30 |
Definition at line 45 of file dtnreporter.c.
const char* progname |
Definition at line 33 of file dtnreporter.c.
char register_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
Definition at line 47 of file dtnreporter.c.
Referenced by doOptions(), and main().
char replyto_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
Definition at line 48 of file dtnreporter.c.
int wait_after_done = 0 |
Definition at line 46 of file dtnreporter.c.
Referenced by doOptions(), and main().