Scroll to navigation

rpma_conn_cfg_set_timeout(3) RPMA Programmer's Manual rpma_conn_cfg_set_timeout(3)

NAME

rpma_conn_cfg_set_timeout - set connection establishment timeout

SYNOPSIS

      #include <librpma.h>
      struct rpma_conn_cfg;
      int rpma_conn_cfg_set_timeout(struct rpma_conn_cfg *cfg,
                      int timeout_ms);

DESCRIPTION

rpma_conn_cfg_set_timeout() sets the connection establishment timeout.

RETURN VALUE

The rpma_conn_cfg_set_timeout() function returns 0 on success or a negative error code on failure.

ERRORS

rpma_conn_cfg_set_timeout() can fail with the following error:
RPMA_E_INVAL - cfg is NULL or timeout_ms < 0

SEE ALSO

rpma_conn_cfg_new(3), rpma_conn_cfg_get_timeout(3), librpma(7) and https://pmem.io/rpma/
21 October 2020 RPMA