GETRPCPORT(3)

✨ GETRPCPORT(3) ✨

okay so bestie, welcome to GETRPCPORT(3) β€” the Library Functions Manual page that's about to explain how to get an RPC port number πŸ’– no cap, it's giving very specific networking energy. Let's go πŸŽ€


🌸 NAME 🌸

getrpcport β€” get RPC port number πŸ‘‘


πŸ’… SYNOPSIS πŸ’…

int
getrpcport(char *host, int prognum, int versnum, int proto);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the getrpcport() function is literally here to return the port number for version versnum of the RPC program prognum running on host and using protocol proto. periodt. ✨

It returns 0 if it cannot contact the portmapper, or if prognum is not registered. πŸ’€

If prognum is registered but not with version versnum, it will still return a port number (for some version of the program) indicating that the program is indeed registered. The version mismatch will be detected upon the first call to the service. πŸ‘€


🌈 AVAILABILITY 🌈

The getrpcport() function is part of libtirpc. slay. πŸ’…


later bestie 🫢 this page is from Debian, dated October 6, 1987, and it's GETRPCPORT(3) πŸ’–βœ¨

πŸ“¦ where this page comes from