KGS::Listener

A generic base class to listen for kgs messages
Download

KGS::Listener Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Marc Lehmann
  • Publisher web site:
  • http://www.goof.com/pcg/marc/

KGS::Listener Tags


KGS::Listener Description

A generic base class to listen for kgs messages KGS::Listener is a generic base class to listen for kgs messages.SYNOPSIS use base KGS::Listener; sub new { my $class = shift; my $self = $class->SUPER::new (@_); # for non-channel-related listeners: $self->listen ($self->{conn}, qw(ping req_pic)); # for channel-type listener $self->listen ($self->{conn}, qw(join_room: part_room: msg_room:)); $self; } sub inject_xxx { # handle msg xxx } # KGS::Listener::Room etc. als require this: sub event_xxx { # handle synthesized event xxx }Please supply a description )The KGS::Listener family has currently these members: KGS::Listener base class for everything KGS::Listener::Channel base class for channels (games, rooms) KGS::Listener::Game base class that handles games KGS::Listener::Room base class for rooms and their game lists KGS::Listener::Roomlist base class for the overall room listing KGS::Listener::User base class for user info, chats etc. KGS::Listener::Debug prints all messages that marc doesn't understand Requirements: · Perl


KGS::Listener Related Software