IBR-DTNSuite  0.10
dtntrigger.cpp File Reference
#include "config.h"
#include <ibrdtn/data/Bundle.h>
#include <ibrdtn/api/Client.h>
#include <ibrcommon/net/socket.h>
#include <ibrcommon/data/File.h>
#include <csignal>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for dtntrigger.cpp:

Go to the source code of this file.

Functions

void print_help ()
 
int init (int argc, char **argv)
 
void term (int signal)
 
int main (int argc, char **argv)
 

Variables

bool _running = true
 
ibrcommon::socketstream_conn = NULL
 
std::string _appname = "trigger"
 
std::string _script = ""
 
std::string _shell = "/bin/sh"
 
ibrcommon::File blob_path ("/tmp")
 
dtn::data::EID group
 
bool signed_only = false
 

Function Documentation

int init ( int  argc,
char **  argv 
)

Definition at line 65 of file dtntrigger.cpp.

References _appname, _script, _shell, blob_path, ibrcommon::BLOB::changeProvider(), ibrcommon::File::exists(), print_help(), and signed_only.

Referenced by main(), and ibrcommon::ThreadsafeState< THREAD_STATE >::reset().

Here is the call graph for this function:

void print_help ( )

Definition at line 51 of file dtntrigger.cpp.

void term ( int  signal)

Definition at line 136 of file dtntrigger.cpp.

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

Here is the call graph for this function:

Variable Documentation

std::string _appname = "trigger"

Definition at line 41 of file dtntrigger.cpp.

Referenced by init(), and main().

ibrcommon::socketstream* _conn = NULL

Definition at line 39 of file dtntrigger.cpp.

bool _running = true

Definition at line 36 of file dtntrigger.cpp.

std::string _script = ""

Definition at line 42 of file dtntrigger.cpp.

Referenced by init(), and main().

std::string _shell = "/bin/sh"

Definition at line 43 of file dtntrigger.cpp.

Referenced by init(), and main().

ibrcommon::File blob_path("/tmp")

Referenced by init(), and main().

bool signed_only = false

Definition at line 49 of file dtntrigger.cpp.

Referenced by init(), and main().