roar_connect(3)
π roar_connect(3) π
okay bestie, so this one lives in the System Manager's Manual: RoarAudio section, and it's literally the door-opening move for talking to RoarAudio's sound server. it's giving "hello? let me in" energy. πͺβ¨
πΈ NAME πΈ
roar_connect, roar_connect2 β the functions that connect you to RoarAudio's sound server. that's it, that's the job. π
β¨ SYNOPSIS β¨
first, you gotta pull in the header, no cap:
#include <roaraudio.h>
then, the two icons themselves:
int roar_connect(struct roar_connection * con, char * server);
int roar_connect2 (struct roar_connection * con, char * server, int flags, uint_least32_t timeout);
yes bestie, they're basically twins, roar_connect2 just has β¨more optionsβ¨. π«Ά
π¦ DESCRIPTION π¦
so what does this actually do? it connects you to RoarAudio's sound server. that's the whole vibe. π
BUT. and this is important, so listen up: this call just connects to the sound server. no authentication, no identify, nothing. it's the raw, unglamorous handshake. π
do NOT use this from end user applications, bestie, i'm so serious. useroar_simple_connect(3)orroar_simple_connect2(3)instead. those are the ones that do the full glow-up for you. this one is for the low-level girlies only. π
π PARAMETERS π
conβ the connection object, aka the little container that gets filled with all the data you need to actually talk to the server. and girl, nearly all other calls use this thing. it's the main character. πserverβ the server you're connecting to. the destination. the place. πflagsβ flags for the connection. currently onlyROAR_ENUM_FLAG_NONEandROAR_ENUM_FLAG_NONBLOCKare supported. heads up though:ROAR_ENUM_FLAG_NONBLOCKdisables some of the server location features, so it's a tradeoff, iykyk. βtimeoutβ the timeout for the connection. a value of zero means no timeout. and here's the tea: currently timeouts are not supported at all. π
π RETURN VALUE π
- on success, these calls return
0. slay. β¨ - on error,
-1comes back. it's giving "nope." π
π EXAMPLES π
want to see it in the wild? go peek at libroar/simple.c, and also check out roar_simple_connect(3). the receipts are right there, bestie. π
π SEE ALSO π
and that's the whole page, periodt. this iconic little number is brought to you by RoarAudio, dated May 2011 β yes, she's been serving since 2011 and she's still here. πππ¦
π¦ where this page comes from
- ubuntu jammy: libroar-dev 1.0~beta12-4 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms