dtnrecv.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include "dtn_api.h"

Go to the source code of this file.

Defines

#define BUFSIZE   16

Functions

void usage ()
void parse_options (int argc, char **argv)
int main (int argc, char **argv)

Variables

const char * progname
int verbose = 0
int quiet = 0
char * endpoint = NULL
dtn_reg_id_t regid = DTN_REGID_NONE
int expiration = 30
int count = 0
int failure_action = DTN_REG_DEFER
char * failure_script = ""
int register_only = 0
int change = 0
int unregister = 0
int recv_timeout = -1
int no_find_reg = 0


Define Documentation

#define BUFSIZE   16

Definition at line 27 of file dtnrecv.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 166 of file dtnrecv.c.

References BUFSIZE, change, count, dtn_bind(), dtn_build_local_eid(), dtn_change_registration(), dtn_close(), dtn_copy_eid(), DTN_ENOTFOUND, dtn_errno(), dtn_find_registration(), dtn_free_payload(), dtn_open(), dtn_parse_eid_string(), DTN_PAYLOAD_MEM, dtn_recv(), DTN_REGID_NONE, dtn_register(), dtn_strerror(), DTN_SUCCESS, dtn_unregister(), endpoint, expiration, failure_action, failure_script, handle, no_find_reg, parse_options(), progname, quiet, recv_timeout, regid, register_only, unregister, dtn_endpoint_id_t::uri, and verbose.

void parse_options ( int  argc,
char **  argv 
)

Definition at line 68 of file dtnrecv.c.

void usage (  ) 

Definition at line 46 of file dtnrecv.c.

References progname.


Variable Documentation

int change = 0

Definition at line 40 of file dtnrecv.c.

Referenced by dtn::LinkScheduleEstimator::badness_of_match(), main(), and parse_options().

int count = 0

Definition at line 36 of file dtnrecv.c.

char* endpoint = NULL

Definition at line 33 of file dtnrecv.c.

int expiration = 30

Definition at line 35 of file dtnrecv.c.

int failure_action = DTN_REG_DEFER

Definition at line 37 of file dtnrecv.c.

Referenced by main(), and parse_options().

char* failure_script = ""

Definition at line 38 of file dtnrecv.c.

Referenced by main(), and parse_options().

int no_find_reg = 0

Definition at line 43 of file dtnrecv.c.

Referenced by main(), and parse_options().

const char* progname

Definition at line 29 of file dtnrecv.c.

int quiet = 0

Definition at line 32 of file dtnrecv.c.

Referenced by main(), and parse_options().

int recv_timeout = -1

Definition at line 42 of file dtnrecv.c.

Referenced by main(), and parse_options().

dtn_reg_id_t regid = DTN_REGID_NONE

Definition at line 34 of file dtnrecv.c.

int register_only = 0

Definition at line 39 of file dtnrecv.c.

Referenced by main(), and parse_options().

int unregister = 0

Definition at line 41 of file dtnrecv.c.

Referenced by main(), and parse_options().

int verbose = 0

Definition at line 31 of file dtnrecv.c.


Generated on Thu Jun 7 12:54:30 2007 for DTN Reference Implementation by  doxygen 1.5.1