|
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 <csignal>#include <sys/types.h>#include <iostream>
Go to the source code of this file.
Functions | |
| void | print_help () |
| void | term (int signal) |
| int | main (int argc, char *argv[]) |
Variables | |
| dtn::api::Client * | _client = NULL |
| ibrcommon::tcpclient * | _conn = NULL |
| int | h = 0 |
| bool | _stdout = true |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 56 of file dtnrecv.cpp.
References _stdout, 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(), h, ibrcommon::BLOB::Reference::iostream(), ibrcommon::tcpclient::open(), print_help(), and term().

| void print_help | ( | ) |
Definition at line 19 of file dtnrecv.cpp.
| void term | ( | int | signal | ) |
Definition at line 38 of file dtnrecv.cpp.
References _stdout, ibrcommon::tcpstream::close(), dtn::api::Client::close(), and h.

| dtn::api::Client* _client = NULL |
Definition at line 32 of file dtnrecv.cpp.
| ibrcommon::tcpclient* _conn = NULL |
Definition at line 33 of file dtnrecv.cpp.
| bool _stdout = true |
Definition at line 36 of file dtnrecv.cpp.
| int h = 0 |
Definition at line 35 of file dtnrecv.cpp.