/ | Mailing list | Docs | Examples | GitHub
libssh2_channel_forward_accept

Name

libssh2_channel_forward_accept - accept a queued connection

Synopsis

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

Description

listener is a forwarding listener instance as returned by libssh2_channel_forward_listen_ex.

Return value

A newly allocated channel instance or NULL on failure.

Errors

When this function returns NULL use libssh2_session_last_errno 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.

See also

libssh2_channel_forward_listen_ex

This HTML page was made with roffit.