| 1 | package Device::CableModem::Zoom5341J; | ||
| 2 | |||
| 3 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 7 | our $VERSION = '1.00'; | |
| 7 | 7 | our @ISA = qw(); | |
| 8 | |||
| 9 | |||
| 10 | sub new | ||
| 11 | 5 | ▶ | { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 5 | my ($class, %parameters) = @_; | |
| 13 | |||
| 14 | 5 | my $self = { | |
| 15 | # How we get at the modem | ||
| 16 | modem_addr => '192.168.100.1', | ||
| 17 | username => 'admin', | ||
| 18 | password => 'password', | ||
| 19 | |||
| 20 | # Runtime data | ||
| 21 | conn_html => undef, | ||
| 22 | conn_stats => undef, | ||
| 23 | |||
| 24 | # Overrides | ||
| 25 | %parameters, | ||
| 26 | }; | ||
| 27 | |||
| 28 | |||
| 29 | 5 | bless $self, $class; | |
| 30 | 5 | return $self; | |
| 31 | } | ||
| 32 | |||
| 33 | |||
| 34 | # Stuff for grabbing the pages from the modem | ||
| 35 | 7 | ▶ | use Device::CableModem::Zoom5341J::Fetch; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | |||
| 37 | # Parsing the HTML | ||
| 38 | 7 | ▶ | use Device::CableModem::Zoom5341J::Parse; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 39 | |||
| 40 | # Returning stats to the user | ||
| 41 | 7 | ▶ | use Device::CableModem::Zoom5341J::Get; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 42 | |||
| 43 | |||
| 44 | |||
| 45 | 7 | 1; | |
| 46 | __END__ | ||