DOKK / manpages / debian 12 / librpma-dev / rpma_utils_conn_event_2str.3.en
rpma_utils_conn_event_2str(3) RPMA Programmer's Manual rpma_utils_conn_event_2str(3)

rpma_utils_conn_event_2str - convert RPMA_CONN_* enum to a string


#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
};

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

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

rpma_utils_conn_event_2str() can not fail.

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

10 January 2023 RPMA