03 May 2010 05:51:38 UTC
- Distribution: Net-Canopy-BAM
- Module version: 0.02
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (12 / 15 / 0)
- KwaliteeBus factor: 0
- License: unknown
- Activity24 month
- Download (5.93KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- SEE ALSO
- COPYRIGHT AND LICENSE
Net::Canopy::BAM - Identifies, assembles, and disassembles Canopy BAM packets.
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();
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 $packetID = $ncb->idPacket(packet => $packet);
Returns the type of BAM packet.
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 $parsedPacket = $ncb->parsePacket(packet => $packet);
Identify packet and parse out data. Returns packet type and data as hashref
Canopy BAM User Guide, Issue 4/BAM 1.1
See http://code.google.com/p/jungleauth/ for wiki, bug reports, svn, etc.
Jonathan Auer, <firstname.lastname@example.org>
Copyright (C) 2008 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.
Module Install Instructions
To install Net::Canopy::BAM, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::Canopy::BAM
For more information on module installation, please visit the detailed CPAN module installation guide.