AuOpenServer(3)
β¨ AuOpenServer(3) β¨
okay bestie, this one lives in the Library Functions Manual, and it's literally just "how do I actually talk to the audio server" β the opening move of every audiolib era. π
πΈ NAME πΈ
AuOpenServer β connect to audio server
π¦ SYNOPSIS π¦
#include <audio/audiolib.h>
AuServer *AuOpenServer(servername, num_authproto, authproto,
num_authdata, authdata, ret_status)
char *servername;
int num_authproto;
char *authproto;
int num_authdata;
char *authdata;
char **return_status; /* RETURN */
π ARGUMENTS π
servernameβ the audio server name, bestie. this is the thing that decides which server you're hitting and what communications domain you're rolling up in. it's giving main character energy for the whole connection.num_authprotoβ how long the connection authorization protocol name is. just the length, okay? πauthprotoβ the actual name of the connection authorization protocol.num_authdataβ how long the connection authorization data is. again: length only, no cap.authdataβ the connection authorization data itself.return_statusβ if this is non-NULLand the connection gets refused, it hands you back an error message. π«Ά
π DESCRIPTION π
So AuOpenServer does the thing: it creates a connection to the audio server you specified and returns a pointer to an AuServer structure β or NULL if it didn't work out, in which case return_status (if it's non-NULL) points at an error message spilling all the tea about why it wasn't successful. π
now for the servername lore, because this is where it gets lowkey iconic:
- if
servernameisNULLor a pointer to a NUL,AuOpenServergoes and gets the value from the environment. go off, environment variable. β¨ servernamehas the formathostname:portorhostname::port.- if a double colon (
::) separates the hostname and port number,AuOpenServerconnects using DECnet streams. - if a single colon (
:) separates the hostname and port number, and the hostname is a host machine name,AuOpenServerconnects using TCP streams. - if a single colon (
:) separates the hostname and port number, and the hostname is"unix",AuOpenServerconnects using UNIX domain sockets (or Streams). - if the hostname isn't specified at all,
AuOpenServeruses whatever it believes is the fastest transport. it's picking the fit for you, no notes. π₯
π SEE ALSO π
AuCloseServerAuServerNameaudiolibβ Network Audio System C Language Interface
fr fr, that's the whole page β every flag, every format, every transport. no crumbs left. π
and that's a wrap, babe π this was audiolib β housekeeping, version 1.9.5, from the AuOpenServer(3) era. go connect to something. πβ¨π¦
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms