IBR-DTNSuite  0.12
dtnoutbox.cpp File Reference
#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 "io/TarUtils.h"
#include "io/ObservedFile.h"
#include "io/FatImageReader.h"
#include <stdlib.h>
#include <iostream>
#include <map>
#include <vector>
#include <sys/types.h>
#include <unistd.h>
#include <regex.h>
#include <getopt.h>
Include dependency graph for dtnoutbox.cpp:

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::FileHashhashlist
 
typedef struct config config_t
 

Functions

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
 
struct option long_options []
 

Typedef Documentation

typedef struct config config_t

Definition at line 87 of file dtnoutbox.cpp.

typedef std::list<io::ObservedFile> filelist

Definition at line 50 of file dtnoutbox.cpp.

typedef std::set<io::ObservedFile> fileset

Definition at line 51 of file dtnoutbox.cpp.

typedef std::set<io::FileHash> hashlist

Definition at line 52 of file dtnoutbox.cpp.

Function Documentation

void print_help ( )

Definition at line 102 of file dtnoutbox.cpp.

References _running.

void read_configuration ( int  argc,
char **  argv,
config_t conf 
)

Definition at line 136 of file dtnoutbox.cpp.

References long_options, and print_help().

Here is the call graph for this function:

void sighandler_func ( int  signal)

Definition at line 220 of file dtnoutbox.cpp.

References _running, _wait_abort, and ibrcommon::Conditional::signal().

Referenced by main().

Here is the call graph for this function:

Variable Documentation

bool _running = true

Definition at line 55 of file dtnoutbox.cpp.

bool _wait_abort = false

Definition at line 59 of file dtnoutbox.cpp.

Referenced by main(), and sighandler_func().

Definition at line 58 of file dtnoutbox.cpp.

struct option long_options[]
Initial value:
=
{
{"destination", required_argument, 0, 'd'},
{"help", no_argument, 0, 'h'},
{"group", no_argument, 0, 'g'},
{"workdir", required_argument, 0, 'w'},
{"interval", required_argument, 0, 'i'},
{"rounds", required_argument, 0, 'r'},
{"path", required_argument, 0, 'p'},
{"regex", required_argument, 0, 'R'},
{"quiet", no_argument, 0, 'q'},
{0, 0, 0, 0}
}

Definition at line 89 of file dtnoutbox.cpp.