Tirex:...ommand(3pm)

πŸ’… NAME πŸ’…

Tirex::Source β€” bestie, it's literally a source of a job request ✨ and it's living in the Tirex:...ommand(3pm) page of the User Contributed Perl Documentation, no cap 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

my $source = Tirex::Source::Command->new();
$source->notify();

πŸŽ€ DESCRIPTION πŸŽ€

okay so. this is the Source that does its thing with Tirex messages sent through UDP πŸ“‘ you know the vibe β€” messages fly across the network and this lil object is the one catching them πŸ’–


πŸ‘‘ METHODS πŸ‘‘

πŸ’« Tirex::Source::Command->new( socket => $socket )

makes you a shiny new source object for a UDP connection 🫢 hand it a socket and you're so set, periodt.

πŸ’« $source->notify($job)

sends the notify that a tile was rendered, right back to the source πŸŽ¨πŸ–ΌοΈ yes bestie, we're telling everyone the tile is done. iconic behavior.

πŸ’« $source->reply($msg)

sends a reply message back to this source β€” and the id gets filled in automatically for you, so don't even stress about it πŸ™ˆ the parameter is just a hash with the message in it πŸ’Œ

it returns the result of the socket's send method ⭐ so that's what you get back, fr fr.


🌈 reminder: the message you pass to reply is a hash, and the id? auto-filled. the returns are the socket send result. that's the whole vibe check πŸ’…

mwah πŸ’‹ that's the page, written by the lovely perl people, shipped as perl v5.40.1, dated 2026-08-09 β€” go slay some tiles bestie, ily πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from