knet_get_transport_list(3)

knet_get_transport_list3

Get a list of the transports support by this build of knet.

Usage

#include <libknet.h>

int knet_get_transport_list(
    struct knet_transport_info   *transport_list,
    size_t                       *transport_list_entries
);

Overview

knet_get_transport_list

transport_list - an array of struct transport_info that must be at least of size struct transport_info * KNET_MAX_TRANSPORTS

transport_list_entries - pointer to a size_t where to store how many transports are available in this build of libknet.

Structures

Transport information returned from knet_get_transport_list() 
struct knet_transport_info {
    const char   *name;        /* Transport name. UDP, SCTP, etc... */
    uint8_t       id;          /* value that can be used for knet_link_set_config() */
    uint8_t       properties;  /* currently unused */
    char          pad[256];    /* currently unused */
};

Return value

knet_get_transport_list 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.