#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 "/var/lib/dtn/dtncpd-incoming" |
Functions | |
void | usage () |
int | main (int argc, const char **argv) |
Variables | |
static const char * | progname |
#define BUNDLE_DIR_DEFAULT "/var/lib/dtn/dtncpd-incoming" |
int main | ( | int | argc, | |
const char ** | argv | |||
) |
Definition at line 67 of file dtncpd.c.
References BUFSIZE, bundle_dir, BUNDLE_DIR_DEFAULT, debug, dtn_bind(), dtn_build_local_eid(), dtn_close(), dtn_copy_eid(), DTN_ENOTFOUND, dtn_errno(), dtn_find_registration(), dtn_open(), DTN_PAYLOAD_FILE, dtn_recv(), DTN_REG_DEFER, DTN_REGID_NONE, dtn_register(), dtn_strerror(), DTN_SUCCESS, endpoint, errno, handle, progname, regid, dtn_endpoint_id_t::uri, and usage().
void usage | ( | ) |
Definition at line 57 of file dtncpd.c.
References BUNDLE_DIR_DEFAULT, and progname.
Referenced by doOptions(), dtntunnel::DTNTunnel::get_options(), main(), parse_options(), and readCommandLineArgs().