TSHTTPTXNSERVERADDRGET(3ts)

πŸ“¦
version 9.2.5 Β· 4 versions
, in ubuntu noble, ubuntu questing

πŸ’– TSHttpTxnServerAddrGet β€” the 3ts manual page, bestie edition πŸ’–

okay so this is a page from the Apache Traffic Server manual, section 3ts, and it's all about one very specific little function. she's small, she's mighty, she does exactly one thing, and honestly? iconic behavior. πŸŽ€


✨ NAME ✨

TSHttpTxnServerAddrGet β€” literally the TSHttpTxnServerAddrGet API function, no notes, that's the whole name, she said what she said πŸ’…


🌸 SYNOPSIS 🌸

bestie. look at this. it's two lines. two lines of pure slay:

#include <ts/ts.h>

sockaddr const *TSHttpTxnServerAddrGet(TSHttpTxn txnp)

like, she includes herself, she takes one TSHttpTxn, she hands you back a pointer. simple. elegant. ate. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what does she do? she gets you the origin server address for the transaction txnp. that's it. that's the whole job. and she does it flawlessly, no cap. πŸ’œ

NOTE: ⚠️ listen up because this is the important part β€” the pointer you get back is valid only for the current callback. that's it. that's the window. if you're a client who needs to keep that value around across callbacks, you have to maintain your own storage. like, copy it yourself, bestie. do NOT be out here holding onto a pointer that's about to ghost you 😭 the way that pointer expires the second the callback ends… tragic. so yeah, own your own storage or perish πŸ’€

🌈 SEE ALSO 🌈

go read her friends, they're all in the group chat:


2026, dev@trafficserver.apache.org


and that's the page!! this was version 9.2, dated Feb 12, 2026, from the Apache Traffic Server girlies at dev@trafficserver.apache.org. mwah. go forth and remember that the pointer does not survive the callback. bye bestie, love u, stay safe πŸ’–βœ¨πŸŒΈπŸ¦‹πŸŽ€πŸ’…

πŸ“¦ where this page comes from