X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=xmlrtorrent.git;a=blobdiff_plain;f=xmlrtorrent%2FTalkerBase.pm;h=d259b811f2121f57ee550e1a51ac30276c274156;hp=d1fa7c800a3d0ef4f84ad735421adf0fd1dc8d76;hb=HEAD;hpb=a4e872193217ce3466cffc6bd05ad6b2afb3b586 diff --git a/xmlrtorrent/TalkerBase.pm b/xmlrtorrent/TalkerBase.pm index d1fa7c8..d259b81 100644 --- a/xmlrtorrent/TalkerBase.pm +++ b/xmlrtorrent/TalkerBase.pm @@ -12,9 +12,30 @@ sub new { my $self = $class->SUPER::new(); $self = {%{$self}, - TYPE => 'talker', - }; + TYPE => 'talker', + '__ERROR' => ''; + }; return bless($self, $class); } +sub load_start { + my $self = shift; + + $self->error("TalkerBase::load_start called, this should never happen!"); + return undef; +} + +sub send_request { + my $self = shift; + + $self->error("TalkerBase::send_request called, this should never happen!"); + return undef; +} + +sub errstr { + my $self = shift; + + return $self->{'__ERROR'}; +} + 1;