#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <time.h>
#include "dtn_api.h"
Go to the source code of this file.
Functions | |
void | parse_options (int, char **) |
dtn_endpoint_id_t * | parse_eid (dtn_handle_t handle, dtn_endpoint_id_t *eid, char *str) |
void | print_usage () |
void | print_eid (char *label, dtn_endpoint_id_t *eid) |
int | main (int argc, char **argv) |
Variables | |
char * | progname |
int | verbose = 1 |
char | data_source [1024] |
char * | arg_dest = NULL |
char * | arg_target = NULL |
int | expiration_time = 60 * 60 |
int | delivery_receipts = 0 |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 53 of file dtncp.c.
References arg_dest, arg_target, bundle_id, bundle_spec, data_source, delivery_receipts, dtn_bundle_spec_t::dest, dtn_bundle_spec_t::dopts, DOPTS_DELIVERY_RCPT, dtn_close(), dtn_copy_eid(), dtn_errno(), dtn_free_payload(), dtn_open(), DTN_PAYLOAD_FILE, DTN_PAYLOAD_MEM, dtn_recv(), DTN_REG_DEFER, DTN_REGID_NONE, dtn_register(), dtn_send(), dtn_set_payload(), dtn_strerror(), DTN_SUCCESS, dtn_reg_info_t::endpoint, dtn_reg_info_t::expiration, dtn_bundle_spec_t::expiration, expiration_time, dtn_reg_info_t::flags, dtnsim::gettimeofday(), handle, parse_eid(), parse_options(), print_eid(), dtn_reg_info_t::regid, regid, reply_payload, reply_spec, dtn_bundle_spec_t::source, dtn_endpoint_id_t::uri, and verbose.
dtn_endpoint_id_t* parse_eid | ( | dtn_handle_t | handle, | |
dtn_endpoint_id_t * | eid, | |||
char * | str | |||
) |
Definition at line 265 of file dtncp.c.
References dtn_build_local_eid(), and dtn_parse_eid_string().
void parse_options | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 200 of file dtncp.c.
References arg_dest, arg_target, data_source, delivery_receipts, expiration_time, print_usage(), and progname.
void print_eid | ( | char * | label, | |
dtn_endpoint_id_t * | eid | |||
) |
Definition at line 287 of file dtncp.c.
References dtn_endpoint_id_t::uri.
char* arg_target = NULL |
Definition at line 41 of file dtncp.c.
Referenced by main(), and parse_options().
char data_source[1024] |
Definition at line 37 of file dtncp.c.
Referenced by fill_payload(), main(), and parse_options().
int delivery_receipts = 0 |
int expiration_time = 60 * 60 |
Definition at line 43 of file dtncp.c.
Referenced by main(), and parse_options().