IBR-DTNSuite  0.8
tools/src/c_api_examples/dtnping_sync.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_sync.c:

Go to the source code of this file.

Functions

void print_usage (char *me)
int main (int argc, char *argv[])

Variables

DTN_EP dep = -1
int16_t waitfor = 0

Function Documentation

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

Main entry

Definition at line 26 of file dtnping_sync.c.

References dep, dtn_endpoint_set_option(), dtn_flush, DTN_OPTION_DSTEID, dtn_read(), dtn_register_endpoint(), dtn_write(), 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_sync.c.


Variable Documentation

DTN_EP dep = -1

DTN endpoint descriptor

Definition at line 11 of file dtnping_sync.c.

int16_t waitfor = 0

Still wait for some byts

Definition at line 14 of file dtnping_sync.c.