libssh2_sftp_get_channel(3)

libssh2_sftp_get_channel3

Return the channel of sftp

Usage

#include <libssh2.h>
#include <libssh2_sftp.h>
LIBSSH2_CHANNEL *
libssh2_sftp_get_channel(LIBSSH2_SFTP *sftp);

Overview

sftp - SFTP instance as returned by libssh2_sftp_init(3)

Return the channel of the given sftp handle.

Return value

The channel of the SFTP instance or NULL if something was wrong.

Releases

8 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–9
  2. 10–12
  3. 13–Arch

Availability

Added in 1.4.0

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