int main(int argc, char *argv[]) {
// Open a new meshlink instance.
- meshlink_handle_t *mesh = meshlink_open("basic_conf", "foo");
+ meshlink_handle_t *mesh = meshlink_open("basic_conf", "foo", "basic");
if(!mesh) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
// Check that the name is ignored now, and that we still are "foo".
- mesh = meshlink_open("basic_conf", "bar");
+ mesh = meshlink_open("basic_conf", "bar", "basic");
if(!mesh) {
fprintf(stderr, "Could not open configuration for foo a second time\n");
return 1;
int main(int argc, char *argv[]) {
// Open a new meshlink instance.
- meshlink::mesh *mesh = meshlink::open<meshlink::mesh>("basicpp_conf", "foo");
+ meshlink::mesh *mesh = meshlink::open<meshlink::mesh>("basicpp_conf", "foo", "basicpp");
if(!mesh) {
cerr << "Could not initialize configuration for foo\n";
return 1;
// Check that the name is ignored now, and that we still are "foo".
- mesh = meshlink::open<meshlink::mesh>("basic_conf", "bar");
+ mesh = meshlink::open<meshlink::mesh>("basic_conf", "bar", "basicpp");
if(!mesh) {
cerr << "Could not open configuration for foo a second time\n";
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("channels_conf.1", "foo");
+ meshlink_handle_t *mesh1 = meshlink_open("channels_conf.1", "foo", "channels");
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("channels_conf.2", "bar");
+ meshlink_handle_t *mesh2 = meshlink_open("channels_conf.2", "bar", "channels");
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("import_export_conf.1", "foo");
+ meshlink_handle_t *mesh1 = meshlink_open("import_export_conf.1", "foo", "import-export");
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("import_export_conf.2", "bar");
+ meshlink_handle_t *mesh2 = meshlink_open("import_export_conf.2", "bar", "import-export");
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("invite_join_conf.1", "foo");
+ meshlink_handle_t *mesh1 = meshlink_open("invite_join_conf.1", "foo", "invite-join");
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("invite_join_conf.2", "bar");
+ meshlink_handle_t *mesh2 = meshlink_open("invite_join_conf.2", "bar", "invite-join");
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("sign_verify_conf.1", "foo");
+ meshlink_handle_t *mesh1 = meshlink_open("sign_verify_conf.1", "foo", "sign-verify");
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("sign_verify_conf.2", "bar");
+ meshlink_handle_t *mesh2 = meshlink_open("sign_verify_conf.2", "bar", "sign-verify");
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;