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

Gearman::ResponseParser - gearmand abstract response parser implementation

Description

Gearman::ResponseParser is an abstract base class.

       See: Gearman::ResponseParser::Taskset

       Subclasses should call this first, then add their own data in underscore members

Methods

source()return source. The source is object/socket

   on_packet($packet,$parser)
       subclasses should override this

   on_error($msg,$parser)
       subclasses should override this

   reset()parse_data($data)
       don't override: FUTURE OPTIMIZATION: let caller say "you can own this scalarref", and then we can keep it
       on the initial setting of $self->{data} and avoid copying into our own.  overkill for now.

   eof()
       don't override

   parse_sock($sock)
       don't override

       $sock is readable, we should sysread it and feed it to parse_data($data)

perl v5.26.2                                       2018-08-30                       Gearman::ResponseParser(3pm)

Name

       Gearman::ResponseParser - gearmand abstract response parser implementation

See Also