| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {void} {gnutls_heartbeat_enable} (gnutls_session_t @var{session}, unsigned int @var{type}) |
| 6 |
@var{session}: is a @code{gnutls_session_t} type. |
| 7 |
|
| 8 |
@var{type}: one of the GNUTLS_HB_* flags |
| 9 |
|
| 10 |
If this function is called with the @code{GNUTLS_HB_PEER_ALLOWED_TO_SEND} |
| 11 |
@code{type} , GnuTLS will allow heartbeat messages to be received. Moreover it also |
| 12 |
request the peer to accept heartbeat messages. This function |
| 13 |
must be called prior to TLS handshake. |
| 14 |
|
| 15 |
If the @code{type} used is @code{GNUTLS_HB_LOCAL_ALLOWED_TO_SEND} , then the peer |
| 16 |
will be asked to accept heartbeat messages but not send ones. |
| 17 |
|
| 18 |
The function @code{gnutls_heartbeat_allowed()} can be used to test Whether |
| 19 |
locally generated heartbeat messages can be accepted by the peer. |
| 20 |
|
| 21 |
@strong{Since:} 3.1.2 |
| 22 |
@end deftypefun |