IBR-DTNSuite
0.8
|
#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/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 <csignal>
#include <sys/types.h>
#include <unistd.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 89 of file dtninbox.cpp.
References _conn, _running, blob_path, ibrcommon::BLOB::changeProvider(), ibrcommon::tcpstream::close(), dtn::api::Client::close(), dtn::api::Client::connect(), ibrcommon::tcpstream::enableNoDelay(), ibrcommon::File::exists(), dtn::api::Client::getBundle(), dtn::api::Bundle::getData(), ibrcommon::BLOB::Reference::iostream(), ibrcommon::appstreambuf::MODE_WRITE, readconfiguration(), and term().
void print_help | ( | ) |
Definition at line 30 of file dtninbox.cpp.
map<string,string> readconfiguration | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 41 of file dtninbox.cpp.
References print_help().
Referenced by main().
void term | ( | int | signal | ) |
Definition at line 77 of file dtninbox.cpp.
References _conn, _running, and ibrcommon::tcpstream::close().
Referenced by main().
ibrcommon::tcpclient* _conn = NULL |
Definition at line 75 of file dtninbox.cpp.
bool _running = true |
Definition at line 72 of file dtninbox.cpp.
Referenced by dtn::net::LOWPANConvergenceLayer::__cancellation(), ibrcommon::NetLink3Manager::__cancellation(), dtn::net::HTTPConvergenceLayer::__cancellation(), dtn::net::LOWPANConvergenceLayer::componentRun(), dtn::net::HTTPConvergenceLayer::componentRun(), main(), ibrcommon::NetLink3Manager::run(), and term().