knet_handle_get_channel(3)

knet_handle_get_channel3

Get the channel associated with a file descriptor.

Usage

#include <libknet.h>

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

Overview

knet_handle_get_channel

knet_h - pointer to knet_handle_t

datafd - get the channel associated to this datafd

*channel - will contain the result

Return value

knet_handle_get_channel returns

0 on success and *channel will contain the result

-1 on error and errno is set. and *channel 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.