BBS::Perm::Plugin::IP - render IP infomation for BBS::Perm
use BBS::Perm::Plugin::IP; my $ip = BBS::Perm::Plugin::IP->new( qqwry => '/opt/QQWry.Dat' ); $ip->add('166.111.166.111'); my $statusbar = $ip->widget;
BBS::Perm::Plugin::IP is a plugin of BBS::Perm for IP infomation. It's used to extract IPv4 address and get some information about the IP. Its widget is a Gtk2::Statusbar object, which is used to show the infomation.
create a new BBS::Perm::Plugin::IP object.
$encoding is your QQWry.Dat's encoding, default is 'gbk';
$widget is a Gtk2::Statusbar object, default is a new one.
$path is your QQWry.Dat's path.
get a arrayref referred to a list of IP information in our object. each element of the list is a arrayref which is [ $ip, $base, $ext ]. see IP::QQWry for the meaning of $base and $ext.
add $ip's infomation to our object.
remove $ip's information from our object
Get a presentation of all the IP information our object has.
clear all the IP information in our object.
return out object's widget, which is a Gtk2::Statusbar object.
sunnavy <sunnavy@gmail.com>
<sunnavy@gmail.com>
Copyright (c) 2007-2011, sunnavy <sunnavy@gmail.com>.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install BBS::Perm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BBS::Perm
CPAN shell
perl -MCPAN -e shell install BBS::Perm
For more information on module installation, please visit the detailed CPAN module installation guide.