// Open two new meshlink instance.
meshlink_handle_t *mesh_a, *mesh_b;
- open_meshlink_pair(&mesh_a, &mesh_b, "channels_aio");
+ open_meshlink_pair(&mesh_a, &mesh_b, "channels_aio_cornercases");
// Set the callbacks.
meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
assert(meshlink_destroy("channels_fork_conf.1"));
- meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.1", "foo", "channels", DEV_CLASS_BACKBONE);
+ meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.1", "foo", "channels-fork", DEV_CLASS_BACKBONE);
assert(mesh);
meshlink_enable_discovery(mesh, false);
meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
assert(meshlink_destroy("channels_fork_conf.2"));
- meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.2", "bar", "channels", DEV_CLASS_BACKBONE);
+ meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.2", "bar", "channels-fork", DEV_CLASS_BACKBONE);
assert(mesh);
meshlink_enable_discovery(mesh, false);
assert(meshlink_destroy("get_all_nodes_conf.3"));
meshlink_handle_t *mesh[3];
- mesh[0] = meshlink_open("get_all_nodes_conf.1", "foo", "import-export", DEV_CLASS_BACKBONE);
+ mesh[0] = meshlink_open("get_all_nodes_conf.1", "foo", "get-all-nodes", DEV_CLASS_BACKBONE);
assert(mesh[0]);
- mesh[1] = meshlink_open("get_all_nodes_conf.2", "bar", "import-export", DEV_CLASS_STATIONARY);
+ mesh[1] = meshlink_open("get_all_nodes_conf.2", "bar", "get-all-nodes", DEV_CLASS_STATIONARY);
assert(mesh[1]);
mesh[2] = meshlink_open("get_all_nodes_conf.3", "baz", "get-all-nodes", DEV_CLASS_STATIONARY);
meshlink_close(mesh[0]);
sleep(2);
time_t foo_stopped = time(NULL);
- mesh[0] = meshlink_open("get_all_nodes_conf.1", "foo", "import-export", DEV_CLASS_BACKBONE);
+ mesh[0] = meshlink_open("get_all_nodes_conf.1", "foo", "get-all_nodes", DEV_CLASS_BACKBONE);
assert(mesh[0]);
nodes = meshlink_get_all_nodes(mesh[0], nodes, &nnodes);