Libssh2 session flag

From Libssh2

int libssh2_session_flag(LIBSSH2_SESSION *session, int flag, int value);

About

Set or clear a binary flag associated with the session.

Parameters

  • session
    Session instance as returned by libssh2_session_init().
  • flag
    Any one or more of the Session Flags constants. If a value of 0 is passed, no flags will be changed.
  • value
    Set to 1 to enable the flag, or 0 to disable it.

Returns

  • New value of flags attributes