Rechercher une page de manuel
Net::Kismet.3pm
Langue: en
Version: 2003-03-09 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Net::Kismet - Client module for KismetSYNOPSIS
use Net::Kismet; $k = new Net::Kismet('localhost', 2501); $k->register('info', \&infohandler, '*'); $k->register('network', \&networkhandler, 'ssid,wep,channel'); $k->timer_register(\&timer, 5); KismetRun($k);
use Net::Kismet qw(:manual); $k = new Net::Kismet('localhost', 2501); KismetInit($k); while (1) { KismetRun($k) }
DESCRIPTION
This module acts as a generic client for Kismet servers.METHODS
register() 1st arg: Kismet Protocol name.
2nd arg: Callback called when Protocol shows up from server. The callback is called with two arguments, first is a refrence to hash of fields, second is the object that registered this callback.
3rd arg: optional = * Fields passed to callback inside hash refrence. A * indicates request for all fields.
timer_register() 1st arg: Callback called every n seconds. The callback is called with one argument, the object that registered the callback.
2nd arg: optional = 1 How often callback is called (aprox)
FUNCTIONS
KismetRun() Runs Net::Kismet objects, called with a list of objects. Returns when all servers terminate.
KismetInit() Kickstarts a list of Net::Kismet objects.
KismetLoop() Does one loop on all Net::Kismet objects. Returns number of servers that have data ready to read, undef when all servers terminate.
VARS
$Net::Kismet::TIMEOUT How long the select loop will block.
$Net::Kismet::ACK_TIMEOUT How many seconds to wait until unacknolaged commands are resent to server
EXPORT
:DEFAULT KismetRun()
:manual KismetInit() KismetLoop()
AUTHOR
Jason Faust, <jason.faust@hardwaremassagecircus.com>SEE ALSO
perl(1)kismet(1)
http://www.kismetwireless.net
docs/DEVEL.client from the Kismet package.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre