---
name: "libssh2_session_get_blocking"
section: "3"
platform: "linux"
package: "libssh2"
version: "1.11.1-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libssh2_session_get_blocking"
---

# libssh2\_session\_get\_blocking(3)

evaluate blocking mode on session

## NAME

libssh2\_session\_get\_blocking - evaluate blocking mode on session

## SYNOPSIS

```
#include <libssh2.h>
int
libssh2_session_get_blocking(LIBSSH2_SESSION *session);
```

## DESCRIPTION

Returns 0 if the state of the session has previously be set to non-blocking and it returns 1 if the state was set to blocking.

## RETURN VALUE

See description.

## SEE ALSO

**[libssh2\_session\_set\_blocking(3)](/libssh2_session_set_blocking/3.md)**
