knet_handle_get_datafd(3)

knet_handle_get_datafd3

Get the file descriptor associated with a channel.

Usage

#include <libknet.h>

int knet_handle_get_datafd(
    knet_handle_t  knet_h,
    const int8_t   channel,
    int           *datafd
);

Overview

knet_handle_get_datafd

knet_h - pointer to knet_handle_t

channel - get the datafd associated to this channel

*datafd - will contain the result

Return value

knet_handle_get_datafd returns

0 on success and *datafd will contain the results

-1 on error and errno is set. and *datafd content is meaningless

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.