IBR-DTNSuite
0.12
|
#include "config.h"
#include <ibrdtn/api/Client.h>
#include <ibrcommon/net/socket.h>
#include <ibrcommon/net/socketstream.h>
#include <ibrcommon/thread/Mutex.h>
#include <ibrcommon/thread/MutexLock.h>
#include <ibrcommon/thread/SignalHandler.h>
#include <ibrcommon/Logger.h>
#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::socketstream * | _conn = NULL |
int | h = 0 |
bool | _stdout = true |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 73 of file dtnrecv.cpp.
References _stdout, ibrcommon::Logger::addStream(), ibrcommon::socketstream::close(), dtn::api::Client::close(), dtn::api::Client::connect(), ibrcommon::File::exists(), dtn::data::Bundle::find(), dtn::api::Client::getBundle(), group, h, ibrcommon::SignalHandler::handle(), ibrcommon::SignalHandler::initialize(), ibrcommon::BLOB::Reference::iostream(), ibrcommon::Logger::LOG_DATETIME, ibrcommon::Logger::LOG_LEVEL, ibrcommon::Logger::LOGGER_ALL, ibrcommon::Logger::LOGGER_DEBUG, logopts, print_help(), and term().
void print_help | ( | ) |
Definition at line 34 of file dtnrecv.cpp.
void term | ( | int | signal) |
Definition at line 56 of file dtnrecv.cpp.
References _stdout, ibrcommon::socketstream::close(), dtn::api::Client::close(), and h.
dtn::api::Client* _client = NULL |
Definition at line 50 of file dtnrecv.cpp.
Referenced by dtn::api::BinaryStreamClient::eventConnectionUp().
ibrcommon::socketstream* _conn = NULL |
Definition at line 51 of file dtnrecv.cpp.
bool _stdout = true |
Definition at line 54 of file dtnrecv.cpp.
int h = 0 |
Definition at line 53 of file dtnrecv.cpp.