GNUnet 0.24.1-16-gbc519cf4b
plugin_testing_transport_simple_send.c File Reference

a plugin to test simple sending of message. More...

Include dependency graph for plugin_testing_transport_simple_send.c:

Go to the source code of this file.

Macros

#define MY_CONF_PREFIX   "test_transport_simple_send"
 

Functions

static const char * get_conf_name (const char *my_node_id)
 

Detailed Description

a plugin to test simple sending of message.

Author
schanzen

Definition in file plugin_testing_transport_simple_send.c.

Macro Definition Documentation

◆ MY_CONF_PREFIX

#define MY_CONF_PREFIX   "test_transport_simple_send"

Definition at line 32 of file plugin_testing_transport_simple_send.c.

Function Documentation

◆ get_conf_name()

static const char * get_conf_name ( const char *  my_node_id)
static

Definition at line 35 of file plugin_testing_transport_simple_send.c.

36{
37 const char *conf_name;
38 const char *dash;
39
41 "Getting conf for id %s\n",
43 dash = strchr (my_node_id, '-');
44 GNUNET_assert (NULL != dash);
45 dash++;
46
47 if (0 == strcmp ("000000", dash))
48 conf_name = MY_CONF_PREFIX "_host.conf";
49 else if (0 == strcmp ("000003", dash))
50 conf_name = MY_CONF_PREFIX "_peer1.conf";
51 else if (0 == strcmp ("000004", dash))
52 conf_name = MY_CONF_PREFIX "_peer1.conf";
53 else
54 {
56 "Getting conf for id %s failed \n",
58 GNUNET_assert (0);
59 }
60
62 "Using conf %s",
63 conf_name);
64 return conf_name;
65}
static const char * my_node_id
#define GNUNET_log(kind,...)
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
@ GNUNET_ERROR_TYPE_ERROR
@ GNUNET_ERROR_TYPE_DEBUG

References GNUNET_assert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_log, MY_CONF_PREFIX, and my_node_id.