IBR-DTNSuite  0.10
dtnrecv.cpp File Reference
#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/Logger.h>
#include <csignal>
#include <sys/types.h>
#include <iostream>
Include dependency graph for dtnrecv.cpp:

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
 

Function Documentation

void print_help ( )

Definition at line 34 of file dtnrecv.cpp.

void term ( int  signal)

Definition at line 54 of file dtnrecv.cpp.

References _stdout, ibrcommon::socketstream::close(), dtn::api::Client::close(), and h.

Here is the call graph for this function:

Variable Documentation

dtn::api::Client* _client = NULL

Definition at line 48 of file dtnrecv.cpp.

Referenced by dtn::api::BinaryStreamClient::eventConnectionUp().

ibrcommon::socketstream* _conn = NULL

Definition at line 49 of file dtnrecv.cpp.

bool _stdout = true

Definition at line 52 of file dtnrecv.cpp.

Referenced by main(), and term().

int h = 0

Definition at line 51 of file dtnrecv.cpp.

Referenced by main(), and term().