IBR-DTNSuite
0.12
|
#include "config.h"
#include "ibrdtn/api/Client.h"
#include "ibrcommon/net/socket.h"
#include "ibrcommon/thread/Mutex.h"
#include "ibrcommon/thread/MutexLock.h"
#include <ibrcommon/thread/SignalHandler.h>
#include "ibrcommon/TimeMeasurement.h"
#include <iostream>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | CREATE_CHUNK_SIZE 2048 |
Functions | |
void | print_help () |
void | print_summary () |
void | term (int signal) |
int | main (int argc, char *argv[]) |
Variables | |
size_t | _received = 0 |
size_t | _transmitted = 0 |
double | _min = 0.0 |
double | _max = 0.0 |
double | _avg = 0.0 |
ibrcommon::TimeMeasurement | _runtime |
ibrcommon::Conditional | __pause |
dtn::api::Client * | __client = NULL |
EID | _addr |
bool | __exit = false |
#define CREATE_CHUNK_SIZE 2048 |
Definition at line 33 of file dtnping.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 214 of file dtnping.cpp.
References _avg, _max, _min, _received, _transmitted, ibrcommon::socketstream::close(), ibrcommon::Conditional::ConditionalAbortException::COND_TIMEOUT, ibrcommon::File::exists(), dtn::data::Bundle::find(), ibrcommon::TimeMeasurement::getMilliseconds(), dtn::data::EID::getString(), ibrcommon::SignalHandler::handle(), ibrcommon::SignalHandler::initialize(), ibrcommon::BLOB::Reference::iostream(), dtn::data::PrimaryBlock::lifetime, dtn::api::Client::MODE_BIDIRECTIONAL, dtn::api::Client::MODE_SENDONLY, print_help(), print_summary(), ibrcommon::Conditional::ConditionalAbortException::reason, ibrcommon::BLOB::Reference::size(), dtn::data::BundleID::source, ibrcommon::TimeMeasurement::start(), ibrcommon::TimeMeasurement::stop(), term(), dtn::data::SDNV< E >::toString(), and ibrcommon::Conditional::wait().
void print_help | ( | ) |
Definition at line 152 of file dtnping.cpp.
void print_summary | ( | ) |
Definition at line 182 of file dtnping.cpp.
References _avg, _max, _min, _received, _transmitted, ibrcommon::TimeMeasurement::format(), dtn::data::EID::getString(), and ibrcommon::TimeMeasurement::stop().
Referenced by main().
void term | ( | int | signal) |
Definition at line 200 of file dtnping.cpp.
References __exit, ibrcommon::Conditional::abort(), and dtn::api::Client::abort().
dtn::api::Client* __client = NULL |
Definition at line 177 of file dtnping.cpp.
bool __exit = false |
Definition at line 180 of file dtnping.cpp.
Referenced by term().
ibrcommon::Conditional __pause |
Definition at line 176 of file dtnping.cpp.
EID _addr |
Definition at line 179 of file dtnping.cpp.
double _avg = 0.0 |
Definition at line 174 of file dtnping.cpp.
Referenced by main(), and print_summary().
double _max = 0.0 |
Definition at line 174 of file dtnping.cpp.
Referenced by main(), and print_summary().
double _min = 0.0 |
Definition at line 174 of file dtnping.cpp.
Referenced by main(), and print_summary().
size_t _received = 0 |
Definition at line 173 of file dtnping.cpp.
Referenced by main(), and print_summary().
ibrcommon::TimeMeasurement _runtime |
Definition at line 175 of file dtnping.cpp.
size_t _transmitted = 0 |
Definition at line 173 of file dtnping.cpp.
Referenced by main(), and print_summary().