#include "platform.h"
#include <unistd.h>
#include <gnunet/platform.h>
#include <gnunet/gnunet_util_lib.h>
#include <gnunet/gnunet_testbed_service.h>
#include <gnunet/gnunet_dht_service.h>
Go to the source code of this file.
Data Structures | |
struct | MyContext |
Macros | |
#define | NUM_PEERS 20 |
Functions | |
static void | shutdown_task (void *cls) |
static void | service_connect_comp (void *cls, struct GNUNET_TESTBED_Operation *op, void *ca_result, const char *emsg) |
static void * | dht_ca (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg) |
static void | dht_da (void *cls, void *op_result) |
static void | test_master (void *cls, struct GNUNET_TESTBED_RunHandle *h, unsigned int num_peers, struct GNUNET_TESTBED_Peer **peers, unsigned int links_succeeded, unsigned int links_failed) |
int | main (int argc, char **argv) |
Variables | |
static struct GNUNET_TESTBED_Operation * | dht_op |
static struct GNUNET_DHT_Handle * | dht_handle |
struct MyContext | ctxt |
static int | result |
#define NUM_PEERS 20 |
Definition at line 8 of file testbed_test.c.
|
static |
Definition at line 25 of file testbed_test.c.
References dht_handle, dht_op, GNUNET_OK, and result.
Referenced by test_master().
|
static |
Definition at line 38 of file testbed_test.c.
References dht_handle, dht_op, GNUNET_assert, GNUNET_SCHEDULER_shutdown(), and op.
Referenced by test_master().
|
static |
Definition at line 51 of file testbed_test.c.
References cfg, ctxt, dht_handle, GNUNET_DHT_connect(), and MyContext::ht_len.
Referenced by test_master().
|
static |
Definition at line 61 of file testbed_test.c.
References ctxt, dht_handle, and GNUNET_DHT_disconnect().
Referenced by test_master().
|
static |
Definition at line 71 of file testbed_test.c.
References ctxt, dht_ca(), dht_da(), dht_op, GNUNET_SCHEDULER_add_shutdown(), MyContext::ht_len, peers, service_connect_comp(), and shutdown_task().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 88 of file testbed_test.c.
References GNUNET_OK, GNUNET_SYSERR, NUM_PEERS, result, ret, and test_master().
|
static |
Definition at line 10 of file testbed_test.c.
Referenced by service_connect_comp(), shutdown_task(), and test_master().
|
static |
Definition at line 12 of file testbed_test.c.
Referenced by dht_ca(), dht_da(), service_connect_comp(), and shutdown_task().
struct MyContext ctxt |
Referenced by dht_ca(), dht_da(), and test_master().
|
static |
Definition at line 21 of file testbed_test.c.
Referenced by main(), and shutdown_task().