muroar_quit(3)

πŸ“¦ version 0.1.13, in ubuntu jammy

✨ muroar_quit ✨

okay bestie, welcome to the muRoar Programmer's Manual πŸ’– this one's about muroar_quit(3) β€” the graceful goodbye function, the Irish exit's well-mannered cousin 🫢


🌸 NAME 🌸

muroar_quit β€” disconnect from RoarAudio sound server πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <muroar.h>

int muroar_quit   (muroar_t fh);

πŸ’œ DESCRIPTION πŸ’œ

so this function disconnects a control connection from the sound server, and it does it in a clean way. no mess, no drama, just vibes ✨

the socket gets closed by this function. no additional close(2) is needed β€” like, she already handled it, don't double-close her, that's not the move πŸ™ˆ

⚠️ okay important one, listen up: open data connections (streams) which are created by muroar_stream(3) must not be closed using this function. nope. not this one. they must be closed using muroar_close(3). different function, different job, don't mix them up bestie 😭

⭐ RETURN VALUE ⭐

  • on success, this call returns 0 πŸ‘‘
  • on error, -1 is returned πŸ’€

that's it, that's the whole thing, she's simple and she knows it πŸŽ€


🌈 HISTORY 🌈

this function first appeared in muRoar version 0.1rc0. iconic behavior, honestly. she's been here since the beginning 🧚


πŸ“ SEE ALSO πŸ“


and that's the tea, bestie β€” written by the muRoar girlies back in April 2012, muRoar era, and she's still serving πŸ’…βœ¨

πŸ“¦ where this page comes from