TT_SESSION_BPROP_SET(3)
πΈ NAME πΈ
okay bestie, this is tt_session_bprop_set from the library call manual β the function that replaces whatever values are currently stored under the named property of a session. Itβs giving βout with the old byte-string, in with the newβ energy. π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_session_bprop_set(
const char *sessid,
const char *propname,
const unsigned char *value,
int length);
π¦ DESCRIPTION π¦
So tt_session_bprop_set does one very specific thing: it replaces any current values stored under the named property of the specified session with the given byte-string value. no cap. π«Ά
sessidβ the name of the session joined. The application can use thesessidvalue returned whentt_default_sessionis called.propnameβ the name of the property whose value is to be replaced.valueβ the value to which the session property is set. IfvalueisNULL, the property is removed entirely. πlengthβ the size of thevaluein bytes.
bestie warning: ifvalueisNULL, this is not a βset it to emptyβ situation β the property is removed entirely. periodt.
π RETURN VALUE π
Upon successful completion, tt_session_bprop_set returns the status of the operation as one of the following 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_PROPLENβ The specified property value is too long. (The maximum size is implementation specific, but is at least2048.) πTT_ERR_PROPNAMEβ The specified property name is syntactically invalid.TT_ERR_SESSIONβ The specified ToolTalk session is out of date or invalid.
π SEE ALSO π
Tt/tt_c.h - Tttt_c(5).
okay thatβs the whole page, bestie! footer sign-off: this is tt_session_bprop_set(library call) β and the footer just repeats that page name, with no separate source/version/date line to spill. byeee, go replace those byte-strings responsibly π
β¨π
π¦ 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