logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PageQueue.pm - extends the Queue module, adding the Page module smarts

Author

       Kees Cook <kees@outflux.net>

Bugs

       Obviously, needs more docs.

Description

       This is a module for use in sendpage(1).

Name

       PageQueue.pm - extends the Queue module, adding the Page module smarts

See Also

perl(1), sendpage(1), Sendpage::KeesConf(3), Sendpage::KeesLog(3), Sendpage::Modem(3),
       Sendpage::PagingCentral(3), Sendpage::Page(3), Sendpage::Recipient(3), Sendpage::Queue(3)

Synopsis

           $pqueue=Sendpage::PageQueue($config);

           # read waiting pages
           while ($fh=$pqueue->getPage($db)) {
               # build up $page
               @stuff=$pqueue->pullPageFromFile($db,$fh);
               $page=Sendpage::Page->new(@stuff);

               # do something to change $page

               # write changes back to queue
               $pqueue->writePage($page);

               $pqueue->fileDone();
           }

           # add a new page
           $fh=$pqueue->addPage($page);

See Also