libssh2_channel_forward_accept(3)

libssh2_channel_forward_accept3

Accept a queued connection

Usage

#include <libssh2.h>
LIBSSH2_CHANNEL *
libssh2_channel_forward_accept(LIBSSH2_LISTENER *listener);

Overview

listener is a forwarding listener instance as returned by libssh2_channel_forward_listen_ex(3).

Return value

A newly allocated channel instance or NULL on failure.

Errors

When this function returns NULL use libssh2_session_last_errno(3) to extract the error code. If that code is LIBSSH2_ERROR_EAGAIN, the session is set to do non-blocking I/O but the call would block.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7–12
  4. 13–Arch

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.