AuSetErrorHandler(3)
π AuSetErrorHandler(3) π
okay bestie, welcome to the AuSetErrorHandler(3) page from the Library Functions Manual β yes the page is called AuSetErrorHandler but the star of the show is literally named AuSetIOErrorHandler, iykyk, we don't question the naming choices of the ancients π
β¨ Name β¨
AuSetIOErrorHandler β set the handler for fatal IO errors π¨
π¦ Synopsis π¦
#include <audio/audiolib.h>
AuBool (*AuSetIOErrorHandler(server, handler))()
AuServer *server;
AuBool (*handler)(AuServer *);
π Arguments π
serverβ the connection to the audio server, obviously π«Άhandlerβ the fatal error handler, bestie. PassNULLif you wanna reinstall the default fatal error handler. That's the reset button, no cap.
πΈ Description πΈ
So AuSetIOErrorHandler sets the fatal I/O error handler and hands you back the previous error handler. Two-for-one, iconic behavior.
That handler gets invoked when a system call error happens β like, for example, when the connection to the server was lost π absolutely devastating.
β οΈ okay so listen: this is assumed to be a fatal condition, which means your error handler routine should not return. Like, at all. If the I/O error handler does return, the client process exits. Periodt. π
π See Also π
AuServerNameAuGetErrorDatabaseTextAuGetErrorTextAuSetErrorHandlerAuSynchronize
And of course: audiolib β Network Audio System C Language Interface π
audiolib - error handling β¨ version 1.9.5 β¨ and that's the whole vibe, bestie β go set some error handlers and slay responsibly πππ¦πΈπ«Άπ
π¦ 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