rc_check(3)

πŸ“¦
version 1.5.2 Β· 4 versions
, in alpine 3.24, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– rc_check(3) πŸ’–

okay so bestie, we're in the Radius client library (radcli) and today's main character is rc_check. she's a (3) β€” a library function, iykyk β€” and she is literally the vibe-check girl for your RADIUS server. let's get into it 🌸


✨ NAME ✨

rc_check β€” and that's it. the description line in the original is blank, no cap. iconic minimalism, she said nothing and left. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <radcli/radcli.h>

int rc_check(
    rc_handle     *rh,
    char          *host,
    char          *secret,
    unsigned short port,
    char          *msg
);

🌈 DESCRIPTION 🌈

so what does she do? she asks the server hostname on the specified port for a status message. that's the whole plot. she knocks on the door, she says "hey bestie, status?", and she comes back with whatever the server hands over. lowkey iconic, highkey useful. πŸ’…


πŸ“ PARAMETERS πŸ“

  • rh β€” a handle to parsed configuration. your whole setup lives in here, she's the main character energy of the arg list. πŸ‘‘
  • host β€” the name of the server. who we're calling. ✨
  • secret β€” the secret used by the server. yes it's a secret, no we don't gossip about it. πŸ™ˆ
  • port β€” the server's port number. unsigned short, so mind your range, bestie. πŸ”₯
  • msg β€” must be an array of PW_MAX_MSG_SIZE or NULL; will contain the concatenation of any PW_REPLY_MESSAGE received. so if you pass a buffer, she's gonna fill it, and everything the server said back gets glued together in there. if you pass NULL, you get nothing back β€” no notes, that's the deal. πŸ’–

⭐ RETURN VALUE ⭐

OK_RC (0) on success, negative on failure as return value.

so: 0 means slay, anything negative means not slay. periodt. 😭


🧚 SEE ALSO 🧚

bestie, this list is long. she's got a whole group chat and everyone's invited. no skipping, we're listing every single one: πŸ’œ

(yes, rc_check(3) is in her own SEE ALSO list. self-love. we stan. πŸ’…)


reminder bestie: every flag, every param, every number stayed exactly where it was. the vibe is new, the facts are untouched. no cap. 🫢

and that's the page!! brought to you by radcli, dated 2023-01-29, closing out with rc_check(3) β€” she said status message, she said OK_RC, she said bye. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from