IBR-DTNSuite
0.8
|
#include "config.h"
#include "ibrdtn/api/Client.h"
#include "ibrdtn/api/StringBundle.h"
#include "ibrcommon/net/tcpclient.h"
#include "ibrcommon/thread/Mutex.h"
#include "ibrcommon/thread/MutexLock.h"
#include "ibrcommon/TimeMeasurement.h"
#include <iostream>
#include <csignal>
#include <stdint.h>
Go to the source code of this file.
Defines | |
#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 20 of file dtnping.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 183 of file dtnping.cpp.
References _avg, _max, _min, _received, _transmitted, ibrcommon::tcpstream::close(), ibrcommon::Conditional::ConditionalAbortException::COND_TIMEOUT, ibrcommon::tcpstream::enableNoDelay(), ibrcommon::File::exists(), dtn::api::Bundle::getData(), dtn::api::Bundle::getLifetime(), ibrcommon::TimeMeasurement::getMilliseconds(), dtn::api::Bundle::getSource(), dtn::data::EID::getString(), ibrcommon::BLOB::Reference::iostream(), dtn::api::Client::MODE_BIDIRECTIONAL, dtn::api::Client::MODE_SENDONLY, ibrcommon::tcpclient::open(), print_help(), print_summary(), ibrcommon::Conditional::ConditionalAbortException::reason, ibrcommon::BLOB::iostream::size(), ibrcommon::TimeMeasurement::start(), ibrcommon::TimeMeasurement::stop(), term(), and ibrcommon::Conditional::wait().
void print_help | ( | ) |
Definition at line 126 of file dtnping.cpp.
void print_summary | ( | ) |
Definition at line 154 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 169 of file dtnping.cpp.
References __exit, ibrcommon::Conditional::abort(), and dtn::api::Client::abort().
dtn::api::Client* __client = NULL |
Definition at line 149 of file dtnping.cpp.
bool __exit = false |
Definition at line 152 of file dtnping.cpp.
Referenced by term().
Definition at line 148 of file dtnping.cpp.
Definition at line 151 of file dtnping.cpp.
Referenced by ibrcommon::LinkManager::ExternalLinkManagerEvent::getAddress().
double _avg = 0.0 |
Definition at line 146 of file dtnping.cpp.
Referenced by main(), and print_summary().
double _max = 0.0 |
Definition at line 146 of file dtnping.cpp.
Referenced by main(), and print_summary().
double _min = 0.0 |
Definition at line 146 of file dtnping.cpp.
Referenced by main(), and print_summary().
size_t _received = 0 |
Definition at line 145 of file dtnping.cpp.
Referenced by main(), and print_summary().
Definition at line 147 of file dtnping.cpp.
size_t _transmitted = 0 |
Definition at line 145 of file dtnping.cpp.
Referenced by main(), and print_summary().