IBR-DTNSuite
0.8
|
#include "config.h"
#include "ibrdtn/api/APIClient.h"
#include "ibrdtn/api/FileBundle.h"
#include "ibrcommon/net/tcpclient.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::APIClient * | _client = NULL |
ibrcommon::tcpclient * | _conn = NULL |
int | h = 0 |
bool | _stdout = true |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 53 of file dtnrecv-ng.cpp.
References _stdout, dtn::api::APIClient::API_STATUS_NOTIFY_BUNDLE, ibrcommon::tcpstream::close(), dtn::api::APIClient::Message::code, dtn::api::APIClient::connect(), ibrcommon::tcpstream::enableNoDelay(), ibrcommon::File::exists(), dtn::api::APIClient::get(), dtn::api::Bundle::getData(), h, ibrcommon::BLOB::Reference::iostream(), dtn::api::APIClient::notify_delivered(), ibrcommon::tcpclient::open(), print_help(), dtn::api::APIClient::setEndpoint(), term(), and dtn::api::APIClient::wait().
void print_help | ( | ) |
Definition at line 17 of file dtnrecv-ng.cpp.
void term | ( | int | signal | ) |
Definition at line 36 of file dtnrecv-ng.cpp.
References _stdout, ibrcommon::tcpstream::close(), h, and dtn::api::APIClient::unblock_wait().
dtn::api::APIClient* _client = NULL |
Definition at line 30 of file dtnrecv-ng.cpp.
ibrcommon::tcpclient* _conn = NULL |
Definition at line 31 of file dtnrecv-ng.cpp.
bool _stdout = true |
Definition at line 34 of file dtnrecv-ng.cpp.
int h = 0 |
Definition at line 33 of file dtnrecv-ng.cpp.