|
IBR-DTNSuite 0.6
|
#include "config.h"#include "ibrdtn/api/Client.h"#include "ibrdtn/api/FileBundle.h"#include "ibrcommon/net/tcpclient.h"#include "ibrcommon/thread/Mutex.h"#include "ibrcommon/thread/MutexLock.h"#include "ibrdtn/data/PayloadBlock.h"#include "ibrdtn/api/BLOBBundle.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 <csignal>#include <sys/types.h>
Go to the source code of this file.
Functions | |
| void | print_help () |
| map< string, string > | readconfiguration (int argc, char **argv) |
| void | term (int signal) |
| int | main (int argc, char **argv) |
Variables | |
| bool | _running = true |
| ibrcommon::tcpclient * | _conn = NULL |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 91 of file dtnoutbox.cpp.
References _conn, _running, ibrcommon::tcpstream::close(), dtn::api::Client::close(), dtn::api::Client::connect(), ibrcommon::TmpFileBLOB::create(), ibrcommon::tcpstream::enableNoDelay(), ibrcommon::File::getFiles(), ibrcommon::File::getPath(), ibrcommon::BLOB::Reference::iostream(), ibrcommon::File::isSystem(), ibrcommon::appstreambuf::MODE_READ, dtn::api::Client::MODE_SENDONLY, readconfiguration(), term(), and ibrcommon::BLOB::tmppath.

| void print_help | ( | ) |
Definition at line 29 of file dtnoutbox.cpp.
| map<string,string> readconfiguration | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 41 of file dtnoutbox.cpp.
References print_help().

| void term | ( | int | signal | ) |
Definition at line 78 of file dtnoutbox.cpp.
References _conn, _running, and ibrcommon::tcpstream::close().

| ibrcommon::tcpclient* _conn = NULL |
Definition at line 76 of file dtnoutbox.cpp.
| bool _running = true |
Definition at line 73 of file dtnoutbox.cpp.