rpma_utils_conn_event_2str(3)

rpma_utils_conn_event_2str - convert RPMA_CONN_* enum to a string

Section 3 librpma-dev bookworm source

Description

rpma_utils_conn_event_2str

NAME

rpma_utils_conn_event_2str - convert RPMA_CONN_* enum to a string

SYNOPSIS

#include <librpma.h>

const char *rpma_utils_conn_event_2str(enum rpma_conn_event conn_event);

enum rpma_conn_event {
RPMA_CONN_UNDEFINED = -1,
RPMA_CONN_ESTABLISHED
,
RPMA_CONN_CLOSED
,
RPMA_CONN_LOST
,
RPMA_CONN_REJECTED
,
RPMA_CONN_UNREACHABLE
};

DESCRIPTION

rpma_utils_conn_event_2str() converts RPMA_CONN_* enum to the const string representation.

RETURN VALUE

The rpma_utils_conn_event_2str() function returns the const string representation of RPMA_CONN_* enums.

ERRORS

rpma_utils_conn_event_2str() can not fail.

SEE ALSO

rpma_conn_next_event(3), librpma(7) and https://pmem.io/rpma/