« blib/lib/Net/BitTorrent/Protocol/BEP23.pm
↑ Summary
lib/Net/BitTorrent/Protocol/HandshakeOnly.pm »
| 1 | use v5.40; | ||
| 2 | use feature 'class'; | ||
| 3 | no warnings 'experimental::class'; | ||
| 4 | class Net::BitTorrent::Protocol::Simulation v2.1.1 : isa(Net::BitTorrent::Protocol::BEP11) { | ||
| 5 | field $peer : reader : writer; | ||
| 6 | |||
| 7 | method _handle_message ( $id, $payload ) { | ||
| 8 | if ($peer) { | ||
| 9 | $peer->handle_message( $id, $payload ); | ||
| 10 | } | ||
| 11 | $self->next::method( $id, $payload ); | ||
| 12 | } | ||
| 13 | } 1; |