diff --git a/Parse-Netstat-Search/Makefile.PL b/Parse-Netstat-Search/Makefile.PL index 652b0f0..1590bfe 100644 --- a/Parse-Netstat-Search/Makefile.PL +++ b/Parse-Netstat-Search/Makefile.PL @@ -16,10 +16,8 @@ WriteMakefile( }, BUILD_REQUIRES => { 'Test::More' => '0', - }, - PREREQ_PM => { - #'ABC' => '1.6', - #'Foo::Bar::Module' => '5.0401', + 'Net::CIDR' => '0', + 'Error::Helper' => '1.0.0', }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Parse-Netstat-Search-*' }, diff --git a/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm b/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm index 700674b..92add33 100644 --- a/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm +++ b/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm @@ -6,15 +6,15 @@ use warnings; =head1 NAME -Parse::Netstat::Search - The great new Parse::Netstat::Search! +Parse::Netstat::Search - Searches =head1 VERSION -Version 0.01 +Version 0.0.0 =cut -our $VERSION = '0.01'; +our $VERSION = '0.0.0'; =head1 SYNOPSIS @@ -25,28 +25,110 @@ Perhaps a little code snippet. use Parse::Netstat::Search; - my $foo = Parse::Netstat::Search->new(); - ... + my $search = Parse::Netstat::Search->new(); -=head1 EXPORT -A list of functions that can be exported. You can delete this section -if you don't export anything, such as for a purely object-oriented module. +=head1 methods -=head1 SUBROUTINES/METHODS +=head2 new -=head2 function1 +=cut -=cut +sub new{ -sub function1 { } -=head2 function2 +=head2 get_cidrs + +Retrieves the CIDR match list. + +The returned value is an array. =cut -sub function2 { +sub get_cidr{ + +} + +=head2 get_protocols + +Gets a list of desired protocols. + +The returned value is a array. + +=cut + +sub get_protocols{ + +} + +=head2 get_states + +Get a list of desired sets. + +The returned value is a array. + +=cut + +sub get_states{ + +} + +=head2 set_cidrs + +This sets the list of CIDRs to search for +in either the local or remote field. + +One value is taken and that is a array of CIDRs. + +Validating in is done by Net::CIDR::cidrvalidate. + +=cut + +sub set_cidrs{ + +} + +=head2 set_ports + +This sets the ports to search for in either +the local or remote field. + +One value is taken and that is a array of ports. + +=cut + +sub set_ports{ + +} + +=head2 set_protocols + +Sets the list of desired protocols to match. + +One value is taken and that is a array. + +If this is undef, then previous settings will be cleared. + +=cut + +sub set_protocols{ + +} + +=head2 set_states + +Sets the list of desired states to match. + +One value is taken and that is a array. + +If this is undef, then previous settings will be cleared. + + +=cut + +sub set_states{ + } =head1 AUTHOR