rpma_ep_listen(3)
β¨ rpma_ep_listen(3) β¨
the one from the RPMA Programmer's Manual β bestie, you're literally about to build a whole listening era π
π NAME π
rpma_ep_listen β create a listening endpoint. that's it, that's the vibe. she makes the endpoint, she makes it listen. main character energy fr fr π
πΈ SYNOPSIS πΈ
#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);
like. look at her. iconic signature, no notes. β¨
π¦ DESCRIPTION π¦
okay so rpma_ep_listen() does two things and it eats both times:
- it creates an endpoint, and
- it initiates listening for incoming connections
and the communication flavour? reliable, connection-oriented, and message-based β that's RDMA_PS_TCP QP communication, no cap. π«Ά
so yeah, she's the one standing at the door being like "hi bestie, come in, we're doing RDMA today." πͺπ
π RETURN VALUE π
rpma_ep_listen() returns 0 on success, or a negative error code on failure. simple as that.
π¨ important π¨ βrpma_ep_listen()does not set the*ep_ptrvalue on failure. so don't go dereferencing that thing hoping for a lil endpoint surprise, because there isn't one. she leaves it alone. periodt.
π ERRORS π
when things go wrong (and they might π), rpma_ep_listen() can fail with these:
RPMA_E_INVALβpeer,addr,portorep_ptrisNULL. bestie. something is missing. check ur args. πRPMA_E_PROVIDERβrdma_create_event_channel(3),rdma_create_id(3),rdma_getaddrinfo(3),rdma_listen(3)failed. one of the provider-side girlies did not come through. πRPMA_E_NOMEMβ out of memory. no ram, no slay. π
π SEE ALSO π
go read these next, they're all part of the lore, iykyk:
rpma_ep_get_fd(3)rpma_ep_next_conn_req(3)rpma_ep_shutdown(3)rpma_peer_new(3)librpma(7)- and the link:
https://pmem.io/rpma/β
RPMA Β· 01 April 2024 π
and that's the whole page bestie, we ate, no crumbs left, go write ur listening endpoint now πβ¨π¦
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms