IBR-DTNSuite  0.8
tools/src/c_api_examples/dtnping_async.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ibrdtn/api/dtn_api.h>
Include dependency graph for dtnping_async.c:

Go to the source code of this file.

Functions

void print_usage (char *me)
void bundle_received (const void *data, uint32_t len)
int main (int argc, char *argv[])

Variables

DTN_EP dep = -1
int16_t waitfor = 0

Function Documentation

void bundle_received ( const void *  data,
uint32_t  len 
)

Definition at line 24 of file dtnping_async.c.

References dep, dtn_close_endpoint(), and waitfor.

Referenced by main().

Here is the call graph for this function:

int main ( int  argc,
char *  argv[] 
)

Main entry

Definition at line 40 of file dtnping_async.c.

References bundle_received(), dep, dtn_register_endpoint(), dtn_send_bundle(), print_usage(), and waitfor.

Here is the call graph for this function:

void print_usage ( char *  me)

Commandline usage

Definition at line 18 of file dtnping_async.c.

Referenced by main().


Variable Documentation

DTN_EP dep = -1

DTN endpoint descriptor

Definition at line 11 of file dtnping_async.c.

Referenced by bundle_received(), and main().

int16_t waitfor = 0

Still wait for some byts

Definition at line 14 of file dtnping_async.c.

Referenced by bundle_received(), and main().