knet_host_add(3)

knet_host_add3

Add a new host id to knet.

Usage

#include <libknet.h>

int knet_host_add(
    knet_handle_t   knet_h,
    knet_node_id_t  host_id
);

Overview

knet_host_add

knet_h - pointer to knet_handle_t

host_id - each host in a knet is identified with a unique ID (see also knet_handle_new(3))

Return value

knet_host_add returns: 0 on success -1 on error and errno is set.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libknet-doc 1.31-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.