|
IBR-DTNSuite 0.6
|
#include "config.h"#include <ibrdtn/api/Client.h>#include <ibrcommon/net/tcpclient.h>#include <ibrcommon/data/File.h>#include <csignal>#include <ctype.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>
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::tcpclient * | _conn = NULL |
| std::string | _appname = "trigger" |
| std::string | _script = "" |
| std::string | _shell = "/bin/sh" |
| int init | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 60 of file dtntrigger.cpp.
References _appname, _script, _shell, print_help(), and ibrcommon::BLOB::tmppath.
Referenced by main().

| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 131 of file dtntrigger.cpp.
References _appname, _running, _script, _shell, ibrcommon::tcpstream::close(), dtn::api::Client::close(), dtn::api::Client::connect(), ibrcommon::tcpstream::enableNoDelay(), dtn::api::Client::getBundle(), dtn::api::Bundle::getData(), ibrcommon::File::getPath(), dtn::api::Bundle::getSource(), dtn::data::EID::getString(), init(), ibrcommon::BLOB::Reference::iostream(), ibrcommon::File::remove(), term(), and ibrcommon::BLOB::tmppath.

| void print_help | ( | ) |
Definition at line 48 of file dtntrigger.cpp.
| void term | ( | int | signal | ) |
Definition at line 118 of file dtntrigger.cpp.
References _running, and ibrcommon::tcpstream::close().

| std::string _appname = "trigger" |
Definition at line 44 of file dtntrigger.cpp.
| ibrcommon::tcpclient* _conn = NULL |
Definition at line 42 of file dtntrigger.cpp.
| bool _running = true |
#include "ibrcommon/thread/Mutex.h" #include "ibrcommon/thread/MutexLock.h" #include "ibrdtn/data/PayloadBlock.h" #include "ibrdtn/data/Bundle.h" #include "ibrcommon/data/BLOB.h"
#include "ibrcommon/appstreambuf.h"
#include <stdlib.h> #include <iostream> #include <map> #include <vector>
#include <sys/types.h>
Definition at line 39 of file dtntrigger.cpp.
| std::string _script = "" |
Definition at line 45 of file dtntrigger.cpp.
| std::string _shell = "/bin/sh" |
Definition at line 46 of file dtntrigger.cpp.