DOKK / manpages / debian 12 / tirex / Tirex::Source.3pm.en
Tirex::Source(3pm) User Contributed Perl Documentation Tirex::Source(3pm)

Tirex::Source - A source of a job request

 my $source = Tirex::Source::...->new();
 $source->readable($socket);
 $source->writable($socket);
 $source->notify();

This is a virtual parent class. Only instantiate subclasses: Tirex::Source::Command, Tirex::Source::ModTile, Tirex::Source::Test

Each subclass must define the following methods:

Create new object of this source class.

$source->readable($socket) =head2 $source->writable($socket)

These methods are called if the socket that was associated to this source object becomes readable or writable.

The source will return true from any of these if reading/writing has been completed, and false if waits for another chance to read/write.

This method is called once a tile has been rendered to notify the source.

2023-04-11 perl v5.36.0