rpma_conn_disconnect3
Tear the connection down
Usage
#include <librpma.h>
struct rpma_conn;
int rpma_conn_disconnect(struct rpma_conn *conn);
Overview
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.
Return value
The rpma_conn_disconnect() function returns 0 on success or a negative error code on failure.
Errors
rpma_conn_disconnect() can fail with the following errors:
•
|
RPMA_E_INVAL - conn is NULL |
|---|---|
•
|
RPMA_E_PROVIDER - |
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.