TT_MESSAGE_SEND(3)

๐Ÿ“ฆ
version 2.5.3 ยท 2 versions
, in nixos 26.05

๐Ÿ’Œ NAME ๐Ÿ’Œ

tt_message_send โ€” send a message. that's it. that's the whole job. she sends. ๐Ÿ’…

okay so real quick, bestie: this page lives in the library call section of the manual (yes, the same one you keep ending up in at 2am). keep that in mind, it's part of the whole vibe โœจ


โœจ SYNOPSIS โœจ

#include <Tt/tt_c.h>
Tt_status tt_message_send(
Tt_message m);

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

The tt_message_send function sends the specified message. that's the tea. you give her a message, she ships it. iconic behavior honestly ๐Ÿซถ

The m argument is the opaque handle for the message involved in this operation. and yes, opaque means you don't get to peek inside โ€” it's giving mysterious main character energy, don't fight it ๐Ÿ™ˆ


๐ŸŒธ RETURN VALUE ๐ŸŒธ

okay so upon successful completion (and also upon not-so-successful completion, no judgment), the tt_message_send function returns the status of the operation as one of the following Tt_status values. vibe check time, one bullet each, no skipping ๐Ÿ‘‘

  • TT_OK โ€” slay! the operation completed successfully ๐Ÿ’–
  • TT_ERR_ADDRESS โ€” the specified Tt_address is invalid ๐Ÿ˜ญ
  • TT_ERR_CLASS โ€” the specified Tt_class is invalid ๐Ÿ˜ญ
  • TT_ERR_FILE โ€” the specified file does not exist or it is inaccessible. not found, not vibing, not today ๐Ÿ’€
  • TT_ERR_NOMP โ€” the ttsession(1) process is not running and the ToolTalk service cannot restart it. the session ghosted you fr fr ๐Ÿซ 
  • TT_ERR_OBJID โ€” the objid passed to the ToolTalk service does not reference an existing object spec ๐Ÿ“
  • TT_ERR_OTYPE โ€” the specified object type is not the name of an installed object type ๐ŸŒˆ
  • TT_ERR_OVERFLOW โ€” the ToolTalk service has more active messages than it can handle. (the maximum number of active messages is implementation specific, but is at least 2000.) bestie is overwhelmed, she's at capacity, please give her a minute ๐Ÿ˜ฎโ€๐Ÿ’จ
  • TT_ERR_POINTER โ€” the pointer passed does not point to an object of the correct type for this operation. wrong type, wrong era, wrong everything ๐Ÿ’€
  • TT_ERR_PROCID โ€” the specified process identifier is out of date or invalid ๐Ÿงš
  • TT_ERR_SESSION โ€” the specified ToolTalk session is out of date or invalid ๐ŸŽ€
  • TT_WRN_STALE_OBJID โ€” the object attribute in the message has been replaced with a newer one. it's not an error bestie, it's just a warning โ€” the old one got a glow-up โœจ
heads up: a whole bunch of these are straight-up "nope, invalid, try again" energy. don't take it personally, she's just being honest ๐Ÿ’œ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


kisses, this was tt_message_send straight out of the library call section ๐ŸŽ€โœจ periodt ๐Ÿ’…

๐Ÿ“ฆ where this page comes from