BRLAPI_CONNECTIONSETTINGS_T(3)
π brlapi_connectionSettings_t β NAME π
okay so bestie, welcome to the Library Functions Manual (that's the manual name, we're not copy-pasting the whole header line, we're being cute about it). This page is all about brlapi_connectionSettings_t β the settings structure for BrlAPI connection. Yes. That's the whole name. It's giving "little struct, big responsibilities". π
β¨ SYNOPSIS β¨
#include <brlapi.h>
π Data Fields
const char * authconst char * host
π¦ Detailed Description π¦
This structure holds every parameter you need to connect to BrlAPI: which file the authorization key can be found in, and which computer to connect to. That's it. Two fields. Two little strings. And yet. π
πΈ Examples
brlapi_connectionSettings_t settings;
settings.auth="/etc/brlapi.key";
settings.host="foo";
so what's happening here? libbrlapi will read the authorization key from the file /etc/brlapi.key and connect to the machine called "foo", on the default TCP port. slay. π
settings.host="10.1.0.2";
this lets you directly enter an IP address instead of a machine name. no name resolution, just vibes (and numbers). π₯
settings.host=":1";
and this one lets libbrlapi connect to the local computer, on port BRLAPI_SOCKETPORTNUM+1. iconic behaviour honestly.
π See also
brlapi_openConnection()
π Field Documentation π
π const char* brlapi_connectionSettings_t::auth
for security reasons, libbrlapi has to get authorized to connect to the BrlAPI server. This can be done via a secret key, for instance. And this field is the path to the file which holds it β which means that file will hence have to be readable by the application. fr fr, check your permissions.
Setting NULL defaults it to the local installation setup, or to the content of the BRLAPI_AUTH environment variable, if it exists. π«Ά
π§ const char* brlapi_connectionSettings_t::host
this one tells you where the BrlAPI server resides: it might be listening on another computer, on any TCP port. It should look like "foo:1", which means TCP port number BRLAPI_SOCKETPORTNUM+1 on a computer called "foo".
β οΈ Note: Please check that resolving this name works before complaining. π (that's not me being mean, that's literally what the page says, and honestly? valid.)
Settings NULL defaults it to localhost, using the local installation's default TCP port, or to the content of the BRLAPI_HOST environment variable, if it exists. β¨
π Author π
Generated automatically by Doxygen for BrlAPI from the source code. not a human, just a robot doing its little thing. π€
aaaand that's the whole page bestie, you ate it, you understood it, you're basically a BrlAPI connection expert now π
β¨ This was BrlAPI, Version 0.8 β page brlapi_con...nSettings_t(3), dated the same as the source code it came from. bye bestie, go connect to something π¦π
π¦ where this page comes from
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu resolute: libbrlapi-dev 6.7-1ubuntu6
- ubuntu stonking: libbrlapi-dev 6.9.1+repack-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms