rpma_ep_listen3
Create a listening endpoint
Usage
#include <librpma.h>
struct rpma_peer;
struct rpma_ep;
int rpma_ep_listen(struct rpma_peer *peer, const char *addr, const char *port,
struct rpma_ep **ep_ptr);
Overview
rpma_ep_listen() creates an endpoint and initiates listening for incoming connections using reliable, connection-oriented and message-based (RDMA_PS_TCP) QP communication.
Return value
The rpma_ep_listen() function returns 0 on success or a negative error code on failure. rpma_ep_listen() does not set *ep_ptr value on failure.
Errors
rpma_ep_listen() can fail with the following errors:
- •
-
RPMA_E_INVAL - peer, addr, port or ep_ptr is NULL
- •
-
RPMA_E_PROVIDER - rdma_create_event_channel(3), rdma_create_id(3), rdma_getaddrinfo(3), rdma_listen(3) failed
- •
-
RPMA_E_NOMEM - out of memory
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.