|
IBR-DTN
1.0.0
|
#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 <ibrcommon/data/BLOB.h>#include <ibrcommon/data/File.h>#include <ibrcommon/appstreambuf.h>#include <ibrcommon/Logger.h>#include "io/TarUtils.h"#include "io/ObservedFile.h"#include <stdlib.h>#include <iostream>#include <map>#include <vector>#include <sys/types.h>#include <unistd.h>#include <regex.h>#include <getopt.h>
Go to the source code of this file.
Typedefs | |
| typedef std::list < io::ObservedFile > | filelist |
| typedef std::set < io::ObservedFile > | fileset |
| typedef std::set< io::FileHash > | hashlist |
| typedef struct config | config_t |
Functions | |
| void | init_logger (config_t &conf) |
| void | print_help () |
| void | read_configuration (int argc, char **argv, config_t &conf) |
| void | sighandler_func (int signal) |
| int | main (int argc, char **argv) |
Variables | |
| bool | _running = true |
| ibrcommon::Conditional | _wait_cond |
| bool | _wait_abort = false |
| const std::string | TAG = "dtnoutbox" |
| struct option | long_options [] |
| typedef struct config config_t |
Definition at line 91 of file dtnoutbox.cpp.
| typedef std::list<io::ObservedFile> filelist |
Definition at line 51 of file dtnoutbox.cpp.
| typedef std::set<io::ObservedFile> fileset |
Definition at line 52 of file dtnoutbox.cpp.
| typedef std::set<io::FileHash> hashlist |
Definition at line 53 of file dtnoutbox.cpp.
| void init_logger | ( | config_t & | conf | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 293 of file dtnoutbox.cpp.
References _running, _wait_abort, _wait_cond, blob_path(), dtn::api::Client::close(), dtn::api::Client::connect(), dtn::data::PrimaryBlock::destination, dtn::data::PrimaryBlock::DESTINATION_IS_SINGLETON, io::ObservedFile::findFiles(), io::ObservedFile::getFile(), io::ObservedFile::getHash(), io::ObservedFile::getStableCounter(), init_logger(), dtn::api::Client::MODE_SENDONLY, dtn::data::Bundle::push_back(), read_configuration(), dtn::data::PrimaryBlock::set(), sighandler_func(), TAG, io::ObservedFile::update(), and io::TarUtils::write().

| void print_help | ( | ) |
Definition at line 139 of file dtnoutbox.cpp.
References _running.
Referenced by read_configuration().
| void read_configuration | ( | int | argc, |
| char ** | argv, | ||
| config_t & | conf | ||
| ) |
Definition at line 174 of file dtnoutbox.cpp.
References long_options, print_help(), and TAG.
Referenced by main().

| void sighandler_func | ( | int | signal | ) |
Definition at line 261 of file dtnoutbox.cpp.
References _running, _wait_abort, _wait_cond, and TAG.
Referenced by main().
| bool _running = true |
Definition at line 56 of file dtnoutbox.cpp.
Referenced by main(), print_help(), and sighandler_func().
| bool _wait_abort = false |
Definition at line 60 of file dtnoutbox.cpp.
Referenced by main(), and sighandler_func().
| ibrcommon::Conditional _wait_cond |
Definition at line 59 of file dtnoutbox.cpp.
Referenced by main(), and sighandler_func().
| struct option long_options[] |
Definition at line 93 of file dtnoutbox.cpp.
Referenced by read_configuration().
| const std::string TAG = "dtnoutbox" |
Definition at line 62 of file dtnoutbox.cpp.
Referenced by dtn::security::DHProtocol::begin(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::net::IPNDAgent::componentRun(), io::FatImageReader::list(), main(), read_configuration(), sighandler_func(), and dtn::security::DHProtocol::step().