Net::Canopy::BAM - Identifies, assembles, and disassembles Canopy BAM packets.
use Net::Canopy::BAM;
Common Packet Assembly, Disassembly, and Identification for the JungleAuth (http://code.google.com/p/jungleauth/) implementation of Canopy BAM.
Also provides a BAM test client.
my $ncb = Net::Canopy::BAM->new();
Instantiates Net::Canopy::BAM.
my $QoSstr = $ncb->buildQstr( upspeed => 512, # Upload speed in Kbps downspeed => 1024, # Download speed in Kbps upbucket => 320000, # Upload bucket size in Kb downbucket => 5120000 # Download bucket size in Kb );
Builds a QoS string.
my $QoShash = $ncb->parseQstr(qstr => $qosstring);
Reads a QoS string and returns its component values as a hashref
my $packet = $ncb->mkAcceptPacket( seq => $sequenceNumber. mac => $smMAC, qos => $QoSstr );
Returns a authentication acceptance packet
my $packet = $ncb->mkRejectPacket( seq => $sequenceNumber, mac => $smMAC );
Returns a rejection response packet.
my $packet = $ncb->mkConfirmPacket(confirmation_token);
my $parsedPacket = $ncb->parsePacket(packet => $packet);
Identify packet and parse out data. Returns packet type and data as hashref
Authentication request from AP
Authentication challange from AP
Second Authentication challange from AP
Authentication grant
Authentication verification
Authentication confirmation
Canopy BAM User Guide, Issue 4/BAM 1.1
See http://code.google.com/p/jungleauth/ for wiki, bug reports, svn, etc.
Jonathan Auer, <jda@tapodi.net>
Copyright (C) 2010 by Jonathan Auer Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
To install Net::Canopy::BAM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Canopy::BAM
CPAN shell
perl -MCPAN -e shell install Net::Canopy::BAM
For more information on module installation, please visit the detailed CPAN module installation guide.