RDMA_GET_PEER_ADDR(3)

πŸ’– RDMA_GET_PEER_ADDR(3) πŸ’–

okay bestie, welcome to the librdmacm programmer's manual ✨ today we're doing rdma_get_peer_addr and it's literally so simple you're gonna be obsessed 🫢


🌸 NAME 🌸

rdma_get_peer_addr β€” returns the remote IP address of a bound rdma_cm_id πŸ’…


✨ SYNOPSIS ✨

#include <rdma/rdma_cma.h>

struct sockaddr * rdma_get_peer_addr (struct rdma_cm_id *id);

πŸŽ€ ARGUMENTS πŸŽ€

  • id β€” the RDMA identifier, aka your little rdma_cm_id main character 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, this function hands you back the remote IP address that's associated with an rdma_cm_id. that's it. that's the whole vibe ✨ no cap.


⭐ RETURN VALUE ⭐

You get a pointer to the sockaddr address of the connected peer πŸ’– slay.

but listen β€” if the rdma_cm_id is not connected, the contents of the sockaddr structure will be set to all zeroes. so don't be out here reading it like it's real data, because it is not πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, you ate that πŸ’…βœ¨

this lil icon came from librdmacm, dated 2007-05-15, and it lives its life as RDMA_GET_PEER_ADDR(3) πŸŽ€ bye bestie, go resolve some addresses πŸ¦‹πŸ’–

πŸ“¦ where this page comes from