#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include "dtn_api.h"
Go to the source code of this file.
Defines | |
#define | CHECK_SET(_arg, _what) |
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) |
void | fill_payload (dtn_bundle_payload_t *payload) |
int | main (int argc, char **argv) |
Variables | |
char * | progname |
dtn_bundle_payload_location_t | payload_type = 0 |
int | copies = 1 |
int | verbose = 0 |
int | sleep_time = 0 |
int | expiration = 3600 |
int | delivery_receipts = 0 |
int | forwarding_receipts = 0 |
int | custody = 0 |
int | custody_receipts = 0 |
int | receive_receipts = 0 |
int | overwrite = 0 |
int | wait_for_report = 0 |
char * | data_source = NULL |
char | date_buf [256] |
char * | arg_replyto = NULL |
char * | arg_source = NULL |
char * | arg_dest = NULL |
dtn_reg_id_t | regid = DTN_REGID_NONE |
#define CHECK_SET | ( | _arg, | |||
_what | ) |
Value:
if (_arg == 0) { \ fprintf(stderr, "dtnsend: %s must be specified\n", _what); \ print_usage(); \ exit(1); \ }
void fill_payload | ( | dtn_bundle_payload_t * | payload | ) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 88 of file dtnsend.c.
References arg_dest, arg_replyto, arg_source, bundle_id, bundle_spec, copies, custody, custody_receipts, delivery_receipts, DOPTS_CUSTODY, DOPTS_CUSTODY_RCPT, DOPTS_DELIVERY_RCPT, DOPTS_FORWARD_RCPT, DOPTS_RECEIVE_RCPT, dtn_close(), dtn_copy_eid(), dtn_errno(), dtn_open(), DTN_PAYLOAD_MEM, dtn_recv(), DTN_REG_DROP, dtn_register(), dtn_send(), dtn_strerror(), DTN_SUCCESS, expiration, fill_payload(), forwarding_receipts, dtnsim::gettimeofday(), handle, parse_eid(), parse_options(), print_eid(), receive_receipts, regid, reply_payload, reply_spec, sleep_time, verbose, and wait_for_report.
dtn_endpoint_id_t* parse_eid | ( | dtn_handle_t | handle, | |
dtn_endpoint_id_t * | eid, | |||
char * | str | |||
) |
void parse_options | ( | int | , | |
char ** | ||||
) |
Definition at line 89 of file dtnrecv.c.
References change, count, DTN_REG_DEFER, DTN_REG_DROP, DTN_REG_EXEC, DTN_REGID_NONE, endpoint, expiration, failure_action, failure_script, no_find_reg, progname, quiet, recv_timeout, regid, register_only, unregister, usage(), and verbose.
void print_eid | ( | char * | label, | |
dtn_endpoint_id_t * | eid | |||
) |
void print_usage | ( | ) |
char* arg_replyto = NULL |
char* arg_source = NULL |
int custody_receipts = 0 |
char* data_source = NULL |
int delivery_receipts = 0 |
int expiration = 3600 |
int forwarding_receipts = 0 |
int receive_receipts = 0 |
dtn_reg_id_t regid = DTN_REGID_NONE |
int sleep_time = 0 |
Definition at line 56 of file dtnsend.c.
Referenced by main(), and dtn::BluetoothConvergenceLayer::NeighborDiscovery::run().
int wait_for_report = 0 |