#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <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/dtnperf" |
#define | OUTFILE "dtnbuffer.rcv" |
#define | CHECK_SET(_arg, _what) |
Functions | |
void | print_usage (char *) |
void | parse_options (int, char **) |
dtn_endpoint_id_t * | parse_eid (dtn_handle_t, dtn_endpoint_id_t *, char *) |
int | main (int argc, char **argv) |
Variables | |
const char * | progname |
int | use_file = 1 |
int | verbose = 0 |
int | aggregate = 0 |
int | debug = 0 |
char * | endpoint = "/dtnperf:/dest" |
char * | bundle_dir = BUNDLE_DIR_DEFAULT |
#define BUFSIZE 16 |
Definition at line 28 of file dtnperf-server.c.
#define BUNDLE_DIR_DEFAULT "/var/lib/dtn/dtnperf" |
Definition at line 29 of file dtnperf-server.c.
#define CHECK_SET | ( | _arg, | |||
_what | ) |
Value:
if (_arg == 0) { \ fprintf(stderr, "\nSYNTAX ERROR: %s must be specified\n", _what); \ print_usage(argv[0]); \ exit(1); \ }
#define OUTFILE "dtnbuffer.rcv" |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 57 of file dtnperf-server.c.
References aggregate, BUFSIZE, bundle_dir, count, debug, dtn_build_local_eid(), dtn_close(), dtn_copy_eid(), dtn_errno(), dtn_open(), DTN_PAYLOAD_FILE, DTN_PAYLOAD_MEM, dtn_recv(), DTN_REG_DEFER, DTN_REGID_NONE, dtn_register(), dtn_strerror(), DTN_SUCCESS, endpoint, errno, handle, OUTFILE, parse_options(), regid, dtn_endpoint_id_t::uri, use_file, and verbose.
dtn_endpoint_id_t* parse_eid | ( | dtn_handle_t | , | |
dtn_endpoint_id_t * | , | |||
char * | ||||
) |
void print_usage | ( | char * | ) |
int aggregate = 0 |
char* bundle_dir = BUNDLE_DIR_DEFAULT |
int debug = 0 |
Definition at line 42 of file dtnperf-server.c.
char* endpoint = "/dtnperf:/dest" |
Definition at line 43 of file dtnperf-server.c.
Referenced by dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_register(), main(), and parse_options().
const char* progname |
Definition at line 37 of file dtnperf-server.c.
int use_file = 1 |
Definition at line 38 of file dtnperf-server.c.
int verbose = 0 |
Definition at line 40 of file dtnperf-server.c.