#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"#include <sys/stat.h>Go to the source code of this file.
Defines | |
| #define | BUFSIZE 16 |
| #define | BUNDLE_DIR_DEFAULT INSTALL_LOCALSTATEDIR "/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 49 of file dtnperf-server.c.
| #define BUNDLE_DIR_DEFAULT INSTALL_LOCALSTATEDIR "/dtn/dtnperf" |
Definition at line 50 of file dtnperf-server.c.
| #define CHECK_SET | ( | _arg, | |||
| _what | ) |
if (_arg == 0) { \ fprintf(stderr, "\nSYNTAX ERROR: %s must be specified\n", _what); \ print_usage(argv[0]); \ exit(1); \ }
| #define OUTFILE "dtnbuffer.rcv" |
Definition at line 51 of file dtnperf-server.c.
Referenced by main().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 78 of file dtnperf-server.c.
References aggregate, dtn_bundle_payload_t::buf, dtn_bundle_payload_t::buf_len, dtn_bundle_payload_t::buf_val, BUFSIZE, bundle_dir, count, debug, dtn_bundle_spec_t::dest, 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, dtn_reg_info_t::endpoint, endpoint, errno, dtn_reg_info_t::expiration, dtn_bundle_payload_t::filename, filename, dtn_bundle_payload_t::filename_val, dtn_reg_info_t::flags, handle, len, OUTFILE, parse_options(), dtn_reg_info_t::regid, regid, dtn_bundle_spec_t::source, dtn_endpoint_id_t::uri, use_file, and verbose.
| dtn_endpoint_id_t* parse_eid | ( | dtn_handle_t | handle, | |
| dtn_endpoint_id_t * | eid, | |||
| char * | str | |||
| ) |
Definition at line 433 of file dtnperf-server.c.
References dtn_build_local_eid(), dtn_parse_eid_string(), and verbose.
| void parse_options | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 380 of file dtnperf-server.c.
References aggregate, bundle_dir, debug, endpoint, print_usage(), use_file, and verbose.
| void print_usage | ( | char * | progname | ) |
Definition at line 360 of file dtnperf-server.c.
References BUNDLE_DIR_DEFAULT.
| int aggregate = 0 |
Definition at line 62 of file dtnperf-server.c.
Referenced by main(), and parse_options().
| char* bundle_dir = BUNDLE_DIR_DEFAULT |
Definition at line 65 of file dtnperf-server.c.
Referenced by main(), and parse_options().
| int debug = 0 |
Definition at line 63 of file dtnperf-server.c.
| char* endpoint = "/dtnperf:/dest" |
Definition at line 64 of file dtnperf-server.c.
Referenced by _wrap_dtn_reg_info_t_endpoint_set(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_register(), dtn::LoggingRegistration::LoggingRegistration(), main(), parse_options(), dtn::TclRegistration::TclRegistration(), and XS().
| const char* progname |
Definition at line 58 of file dtnperf-server.c.
| int use_file = 1 |
Definition at line 59 of file dtnperf-server.c.
| int verbose = 0 |
Definition at line 61 of file dtnperf-server.c.
1.6.3