TT_MESSAGE_FAIL(3)
β¨ NAME β¨
tt_message_fail β indicate a message cannot be handled.
Okay bestie, this is the tt_message_fail page from the library call manual, and itβs literally about telling the ToolTalk service βnope, I canβt handle this one.β π
π¦ SYNOPSIS π¦
#include &<Tt/tt_c.h>
Tt_status tt_message_fail(
Tt_message m);
πΈ DESCRIPTION πΈ
The tt_message_fail function informs the ToolTalk service that the process cannot handle the request just received. β¨
It also informs the ToolTalk service that the message is not to be offered to other processes of the same ptype β the service gets the memo. The ToolTalk service will send the message back to the sender with state TT_FAILED. π«Ά
The m argument is the opaque handle for the message involved in this operation.
π₯ RETURN VALUE π₯
Upon successful completion, tt_message_fail returns the status of the operation as one of these Tt_status values:
TT_OKβ the operation completed successfully. slay.TT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it.TT_ERR_NOTHANDLERβ this application is not the handler for this message.TT_ERR_POINTERβ the pointer passed does not point to an object of the correct type for this operation.
The status value must be greater than TT_ERR_LAST to avoid confusion with the ToolTalk service status values.
π APPLICATION USAGE π
To distinguish this case from the case where a message failed because no matching handler could be found, the application should place an explanatory message code in the status attribute of the message with tt_message_status_set(3) and tt_message_status_string_set(3) before calling tt_message_fail. iykyk β set the status, then fail the message.
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_message_status_set(3),tt_message_status_string_set(3).
π Final sign-off, bestie: the footerβs source/version text is just the library call manual label, and thereβs no date printed β so weβre not inventing one, periodt. π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms