dtncpd.c File Reference

#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 Documentation

#define BUFSIZE   16

Definition at line 30 of file dtncpd.c.

Referenced by main().

#define BUNDLE_DIR_DEFAULT   "/var/lib/dtn/dtncpd-incoming"

Definition at line 31 of file dtncpd.c.

Referenced by main(), and usage().


Function Documentation

int main ( int  argc,
const char **  argv 
)

Definition at line 46 of file dtncpd.c.

References dtn_bundle_payload_t::buf, dtn_bundle_payload_t::buf_len, dtn_bundle_payload_t::buf_val, 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, endpoint, errno, dtn_reg_info_t::expiration, dtn_reg_info_t::failure_action, handle, progname, dtn_reg_info_t::regid, regid, snprintf(), dtn_bundle_spec_t::source, dtn_endpoint_id_t::uri, and usage().

void usage (  ) 

Definition at line 36 of file dtncpd.c.

References BUNDLE_DIR_DEFAULT, and progname.

Referenced by doOptions(), dtntunnel::DTNTunnel::get_options(), main(), parse_options(), and readCommandLineArgs().


Variable Documentation

const char* progname [static]

Definition at line 33 of file dtncpd.c.


Generated on Sat Sep 8 08:36:19 2007 for DTN Reference Implementation by  doxygen 1.5.3