rpma_ep_listen(3)

πŸ“¦
version 1.3.0 Β· 3 versions
, in ubuntu noble

✨ 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_ptr value 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:


🌈 SEE ALSO 🌈

go read these next, they're all part of the lore, iykyk:


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