libssh2_session_flag.3 (922B)
1.TH libssh2_session_flag 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_session_flag - TODO 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_session_flag(LIBSSH2_SESSION *session, int flag, int value); 10.fi 11.SH DESCRIPTION 12Set options for the created session. \fIflag\fP is the option to set, while 13\fIvalue\fP is typically set to 1 or 0 to enable or disable the option. 14.SH FLAGS 15.IP LIBSSH2_FLAG_SIGPIPE 16If set, libssh2 will not attempt to block SIGPIPEs but will let them trigger 17from the underlying socket layer. 18.IP LIBSSH2_FLAG_COMPRESS 19If set - before the connection negotiation is performed - libssh2 will try to 20negotiate compression enabling for this connection. By default libssh2 will 21not attempt to use compression. 22.SH RETURN VALUE 23Returns regular libssh2 error code. 24.SH AVAILABILITY 25This function has existed since the age of dawn. LIBSSH2_FLAG_COMPRESS was 26added in version 1.2.8. 27.SH SEE ALSO