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/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>
#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 91 of file dtnoutbox.cpp.
References _conn, _running, blob_path, ibrcommon::BLOB::changeProvider(), ibrcommon::tcpstream::close(), dtn::api::Client::close(), dtn::api::Client::connect(), ibrcommon::BLOB::create(), ibrcommon::tcpstream::enableNoDelay(), ibrcommon::File::exists(), ibrcommon::File::getFiles(), ibrcommon::File::getPath(), ibrcommon::BLOB::Reference::iostream(), ibrcommon::File::isSystem(), ibrcommon::appstreambuf::MODE_READ, dtn::api::Client::MODE_SENDONLY, readconfiguration(), and term().
void print_help | ( | ) |
Definition at line 30 of file dtnoutbox.cpp.
map<string,string> readconfiguration | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 42 of file dtnoutbox.cpp.
References print_help().
void term | ( | int | signal | ) |
Definition at line 79 of file dtnoutbox.cpp.
References _conn, _running, and ibrcommon::tcpstream::close().
ibrcommon::tcpclient* _conn = NULL |
Definition at line 77 of file dtnoutbox.cpp.
bool _running = true |
Definition at line 74 of file dtnoutbox.cpp.