#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <time.h>#include <unistd.h>#include <errno.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/time.h>#include "dtn_api.h"Go to the source code of this file.
Defines | |
| #define | BUFSIZE 16 |
| #define | BUNDLE_DIR_DEFAULT INSTALL_LOCALSTATEDIR "/dtn/dtncpd-incoming" |
Functions | |
| void | usage () |
| int | main (int argc, const char **argv) |
Variables | |
| static const char * | progname |
| #define BUFSIZE 16 |
Definition at line 33 of file dtncpd.c.
Referenced by main(), and print_data().
| #define BUNDLE_DIR_DEFAULT INSTALL_LOCALSTATEDIR "/dtn/dtncpd-incoming" |
Definition at line 34 of file dtncpd.c.
Referenced by main(), print_usage(), and usage().
| int main | ( | int | argc, | |
| const char ** | argv | |||
| ) |
Definition at line 49 of file dtncpd.c.
References BUFSIZE, bundle_dir, BUNDLE_DIR_DEFAULT, debug, dtn_bundle_spec_t::dest, dtn_bind(), dtn_build_local_eid(), dtn_close(), dtn_copy_eid(), DTN_ENOTFOUND, dtn_errno(), dtn_find_registration(), dtn_free_payload(), dtn_open(), DTN_PAYLOAD_FILE, dtn_recv(), DTN_REG_DEFER, DTN_REGID_NONE, dtn_register(), dtn_strerror(), DTN_SUCCESS, dtn_reg_info_t::endpoint, errno, dtn_reg_info_t::expiration, dtn_bundle_payload_t::filename, filename, dtn_bundle_payload_t::filename_len, dtn_bundle_payload_t::filename_val, dtn_reg_info_t::flags, handle, progname, dtn_reg_info_t::regid, regid, dtn_bundle_spec_t::source, dtn_endpoint_id_t::uri, and usage().
| void usage | ( | ) |
Definition at line 39 of file dtncpd.c.
References BUNDLE_DIR_DEFAULT, and progname.
Referenced by doOptions(), main(), parse_options(), and readCommandLineArgs().
1.6.3