shishi_realm_for_server(3)
β¨ shishi_realm_for_server β¨
okay bestie so this is a page from the shishi manual β section 3, the library-calls section, iykyk β and it's all about shishi_realm_for_server, which is literally the girl whose whole job is finding you a realm. let's get into it π
πΈ NAME πΈ
shishi_realm_for_server β it's an API function, babe. that's the whole name. short, sweet, does exactly what it says on the tin π
π¦ SYNOPSIS π¦
#include <shishi.h>
char * shishi_realm_for_server(Shishi * handle, char * server);
like... include the header, call the function, get a realm. slay. β¨
π ARGUMENTS π
Shishi * handleβ this is your Shishi library handle, and you get it by callingshishi_init(). no handle, no service, periodt. it's the little β¨entry passβ¨ to the whole library.char * serverβ the hostname you want a realm for. just hand her the name and she'll go find out what realm it belongs to π«Ά
π DESCRIPTION π
so here's the tea: shishi_realm_for_server finds a realm for the host server, and it does that using various methods. it's giving resourceful. it's giving main character energy. π
currently β and yes, "currently" is doing real work in that sentence, the methods can grow β those methods are:
- static configuration files, via the library call
shishi_realm_for_server_file(), and - DNS lookup, via
shishi_realm_for_server_dns().
and the order matters, bestie: they are attempted in the stated order. so the file one gets first dibs, then DNS steps in. π
if you want the actual details on either of those, go read the documentation of whichever function you're curious about β this page is not gonna steal their spotlight. π
β RETURN VALUE β
you get back the realm for the host you asked about. π
and if nothing is known about server? you get NULL. that's it, that's the whole story. no realm, no vibes, NULL. π
π REPORTING BUGS π
found a bug? first of all, not the vibe, but also β please tell the people who can fix it. report bugs to <bug-shishi@gnu.org>. π¬
- GNU Shishi home page: http://www.gnu.org/software/shishi/
- General help using GNU software: http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. π (yes, that's the actual legal permission, and it's honestly kind of generous of them. iconic behavior.)
π₯ SEE ALSO π₯
the full documentation for shishi is maintained as a Texinfo manual β that's the big one, the whole encyclopedia. π§
if the info and shishi programs are properly installed at your site, this command:
info shishi
should give you access to the complete manual. go forth and read, bestie πβ¨
and that's the page!! πΈ this was shishi_realm_for_server(3), shipped as part of shishi 1.0.3 β mwah, no notes, go find your realms π«Άππ
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms