rpma_conn_next_event(3) | RPMA Programmer's Manual | rpma_conn_next_event(3) |
rpma_conn_next_event - obtain a connection status
#include <librpma.h>
struct rpma_conn;
enum rpma_conn_event {
RPMA_CONN_UNDEFINED = -1,
RPMA_CONN_ESTABLISHED,
RPMA_CONN_CLOSED,
RPMA_CONN_LOST,
RPMA_CONN_REJECTED,
RPMA_CONN_UNREACHABLE
};
int rpma_conn_next_event(struct rpma_conn *conn,
enum rpma_conn_event *event);
rpma_conn_next_event() obtains the next event from the connection. Types of events:
The rpma_conn_next_event() function returns 0 on success or a negative error code on failure.
rpma_conn_next_event() can fail with the following errors:
rpma_conn_req_connect(3), rpma_conn_disconnect(3), librpma(7) and https://pmem.io/rpma/
10 January 2023 | RPMA |