RPMA_CONN_APPLY_REMOTE_PEER_CFG(3)

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

πŸ’– rpma_conn_apply_remote_peer_cfg(3) πŸ’–

okay bestie, welcome to the RPMA Programmer's Manual β€” yes we're really out here reading man pages for fun now, and honestly? iconic behavior. πŸŽ€


✨ NAME ✨

rpma_conn_apply_remote_peer_cfg β€” apply remote peer cfg to the connection

like, you've got a remote peer's config and you need it to actually land on the connection. that's this function. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <librpma.h>

struct rpma_conn;
struct rpma_peer_cfg;
int rpma_conn_apply_remote_peer_cfg(struct rpma_conn *conn,
                const struct rpma_peer_cfg *pcfg);

look at her. two structs, one function, zero drama. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

rpma_conn_apply_remote_peer_cfg() applies the remote peer configuration to the connection.

that's it. that's the tea. you hand her a conn, you hand her a pcfg, and she goes ahead and applies that remote peer config right onto the connection. no cap. ✨


⭐ RETURN VALUE ⭐

so here's the rundown:

  • 🫢 rpma_conn_apply_remote_peer_cfg() returns 0 on success
  • 😭 or a negative error code on failure
  • πŸ’€ and listen β€” on failure, rpma_conn_apply_remote_peer_cfg() does not set the *pcfg value. like, she just doesn't touch it. don't come for her about it.

πŸ”₯ ERRORS πŸ”₯

rpma_conn_apply_remote_peer_cfg() can fail with the following error:

  • RPMA_E_INVAL β€” conn or pcfg are NULL πŸ’€
fr fr, if either of those is NULL you're getting RPMA_E_INVAL and that's just how it is. vibe check your pointers before you call, bestie. πŸ™ˆ

🌈 SEE ALSO 🌈


and that's the page, babe! πŸ‘‘

this whole thing comes to you from RPMA, dated 01 April 2024 β€” go read the other pages too, iykyk. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from