rpma_ep_next_conn_req3
Obtain an incoming connection request
Usage
#include <librpma.h>
struct rpma_ep;
struct rpma_conn_cfg;
struct rpma_conn_req;
int rpma_ep_next_conn_req(struct rpma_ep *ep, const struct rpma_conn_cfg *cfg,
struct rpma_conn_req **req_ptr);
Overview
rpma_ep_next_conn_req() obtains the next connection request from the endpoint.
Return value
The rpma_ep_next_conn_req() function returns 0 on success or a negative error code on failure. rpma_ep_next_conn_req() does not set *req_ptr value on failure.
Errors
rpma_ep_next_conn_req() can fail with the following errors:
•
|
RPMA_E_INVAL - ep or req_ptr is NULL |
|---|---|
•
|
RPMA_E_INVAL - obtained an event different than a connection request |
•
|
RPMA_E_PROVIDER - rdma_get_cm_event(3) failed |
•
|
RPMA_E_NOMEM - out of memory |
•
|
RPMA_E_NO_EVENT - no next connection request available |
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.