- /// Blacklist a node from the mesh.
- /** This function causes the local node to blacklist another node.
- * The local node will drop any existing connections to that node,
- * and will not send data to it nor accept any data received from it any more.
- *
- * @param node A pointer to a meshlink::node describing the node to be blacklisted.
- *
- * @return This function returns true if the node has been whitelisted, false otherwise.
- */
- bool blacklist(node *node) {
- return meshlink_blacklist(handle, node);
- }
-
- /// Blacklist a node from the mesh by name.
- /** This function causes the local node to blacklist another node by name.
- * The local node will drop any existing connections to that node,
- * and will not send data to it nor accept any data received from it any more.
- *
- * If no node by the given name is known, it is created.
- *
- * @param name The name of the node to blacklist.
- *
- * @return This function returns true if the node has been blacklisted, false otherwise.
- */
- bool blacklist_by_name(const char *name) {
- return meshlink_blacklist_by_name(handle, name);
- }
-
- /// Whitelist a node on the mesh.
- /** This function causes the local node to whitelist another node.
- * The local node will allow connections to and from that node,
- * and will send data to it and accept any data received from it.
- *
- * @param node A pointer to a meshlink::node describing the node to be whitelisted.
- *
- * @return This function returns true if the node has been whitelisted, false otherwise.
- */
- bool whitelist(node *node) {
- return meshlink_whitelist(handle, node);
- }
-
- /// Whitelist a node on the mesh by name.
- /** This function causes the local node to whitelist a node by name.
- * The local node will allow connections to and from that node,
- * and will send data to it and accept any data received from it.
- *
- * If no node by the given name is known, it is created.
- * This is useful if new nodes are blacklisted by default.
- *
- * \memberof meshlink_node
- * @param name The name of the node to whitelist.
- *
- * @return This function returns true if the node has been whitelisted, false otherwise.
- */
- bool whitelist_by_name(const char *name) {
- return meshlink_whitelist_by_name(handle, name);
- }
-