IBR-DTNSuite  0.12
dtninbox.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 <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"
Include dependency graph for dtninbox.cpp:

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
 

Function Documentation

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().

Here is the call graph for this function:

void term ( int  signal)

Definition at line 126 of file dtninbox.cpp.

References _running, and ibrcommon::socketstream::close().

Referenced by main().

Here is the call graph for this function:

Variable Documentation

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.

struct option long_options[]
Initial value:
=
{
{"workdir", required_argument, 0, 'w'},
{"quiet", no_argument, 0, 'q'},
{0, 0, 0, 0}
}

Definition at line 52 of file dtninbox.cpp.

Referenced by read_configuration().