libssh2_channel_forward_accept.3 (737B)
1.TH libssh2_channel_forward_accept 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_channel_forward_accept - accept a queued connection 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8LIBSSH2_CHANNEL * 9libssh2_channel_forward_accept(LIBSSH2_LISTENER *listener); 10.fi 11.SH DESCRIPTION 12\fIlistener\fP is a forwarding listener instance as returned by 13\fBlibssh2_channel_forward_listen_ex(3)\fP. 14.SH RETURN VALUE 15A newly allocated channel instance or NULL on failure. 16.SH ERRORS 17When this function returns NULL use \fIlibssh2_session_last_errno(3)\fP to 18extract the error code. If that code is \fILIBSSH2_ERROR_EAGAIN\fP, the 19session is set to do non-blocking I/O but the call would block. 20.SH SEE ALSO 21.BR libssh2_channel_forward_listen_ex(3)