| 1 | use v5.40; | ||
| 2 | use feature 'class'; | ||
| 3 | no warnings 'experimental::class'; | ||
| 4 | use Net::BitTorrent::Emitter; | ||
| 5 | # | ||
| 6 | class Net::BitTorrent::Tracker::Base v2.1.0 : isa(Net::BitTorrent::Emitter) { | ||
| 7 | field $url : param : reader; | ||
| 8 | field $ssrf_bypass : param : reader = 0; | ||
| 9 | |||
| 10 | method perform_announce ( $params, $cb = undef ) { | ||
| 11 | $self->_emit_log( 'fatal', 'Not implemented in base class' ); | ||
| 12 | } | ||
| 13 | |||
| 14 | method perform_scrape ( $infohashes, $cb = undef ) { | ||
| 15 | $self->_emit_log( 'fatal', 'Not implemented in base class' ); | ||
| 16 | } | ||
| 17 | }; | ||
| 18 | 1; |