|
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 <ibrdtn/data/PayloadBlock.h>#include <ibrdtn/data/Bundle.h>#include <ibrcommon/data/BLOB.h>#include <ibrcommon/data/File.h>#include <ibrcommon/appstreambuf.h>#include <stdlib.h>#include <iostream>#include <map>#include <vector>#include <sys/types.h>#include <unistd.h>#include <getopt.h>#include "io/TarUtils.h"
Go to the source code of this file.
Functions | |
| void | print_help () |
| void | read_configuration (int argc, char **argv) |
| void | term (int signal) |
| int | main (int argc, char **argv) |
Variables | |
| string | _conf_name |
| string | _conf_inbox |
| string | _conf_workdir |
| int | _conf_quiet = false |
| struct option | long_options [] |
| bool | _running = true |
| ibrcommon::socketstream * | _conn = NULL |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 138 of file dtninbox.cpp.
References _conf_inbox, _conf_name, _conf_quiet, _conf_workdir, _running, blob_path, ibrcommon::BLOB::changeProvider(), ibrcommon::socketstream::close(), dtn::api::Client::close(), dtn::api::Client::connect(), ibrcommon::File::exists(), dtn::data::Bundle::find(), dtn::api::Client::getBundle(), ibrcommon::SignalHandler::handle(), ibrcommon::SignalHandler::initialize(), ibrcommon::BLOB::Reference::iostream(), io::TarUtils::read(), read_configuration(), ibrcommon::Thread::sleep(), term(), and dtn::data::BundleID::toString().

| void print_help | ( | ) |
Definition at line 59 of file dtninbox.cpp.
| void read_configuration | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 71 of file dtninbox.cpp.
References _conf_inbox, _conf_name, _conf_workdir, long_options, and print_help().
Referenced by main().

| void term | ( | int | signal) |
Definition at line 126 of file dtninbox.cpp.
References _running, and ibrcommon::socketstream::close().
Referenced by main().

| string _conf_inbox |
Definition at line 46 of file dtninbox.cpp.
Referenced by main(), and read_configuration().
| string _conf_name |
Definition at line 45 of file dtninbox.cpp.
Referenced by main(), and read_configuration().
| int _conf_quiet = false |
Definition at line 50 of file dtninbox.cpp.
Referenced by main().
| string _conf_workdir |
Definition at line 49 of file dtninbox.cpp.
Referenced by main(), and read_configuration().
| ibrcommon::socketstream* _conn = NULL |
Definition at line 124 of file dtninbox.cpp.
| bool _running = true |
Definition at line 121 of file dtninbox.cpp.
Referenced by ibrcommon::NetLinkManager::__cancellation(), dtn::net::LOWPANConvergenceLayer::__cancellation(), dtn::net::LOWPANConvergenceLayer::componentRun(), dtn::net::LOWPANConvergenceLayer::componentUp(), main(), print_help(), dtn::api::EventConnection::raiseEvent(), ibrcommon::NetLinkManager::run(), sighandler_func(), and term().
| struct option long_options[] |
Definition at line 52 of file dtninbox.cpp.
Referenced by read_configuration().