rpma_conn_disconnect - tear the connection down
#include <librpma.h> struct rpma_conn; int rpma_conn_disconnect(struct rpma_conn *conn);
rpma_conn_disconnect() tears the connection down.
It may initiate disconnecting the connection. In this case, the end of disconnecting is signalled by the RPMA_CONN_CLOSED event via rpma_conn_next_event() or
It may be called after receiving the RPMA_CONN_CLOSED event. In this case, the disconnection is done when rpma_conn_disconnect() returns with success.
The rpma_conn_disconnect() function returns 0 on success or a negative error code on failure.
rpma_conn_disconnect() can fail with the following errors:
RPMA_E_INVAL - conn is NULL
RPMA_E_PROVIDER - rdma_disconnect() failed
rpma_conn_delete(3), rpma_conn_next_event(3), rpma_conn_req_connect(3), librpma(7) and https://pmem.io/rpma/
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.