Rechercher une page de manuel
Net::Write::Layer2.3pm
Langue: en
Version: 2009-06-10 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
Net::Write::Layer2 - object for a link layer (layer 2) descriptorSYNOPSIS
use Net::Write::Layer2; my $desc = Net::Write::Layer2->new( dev => 'eth0', ); $desc->open; $desc->send('G'x666); $desc->close;
DESCRIPTION
This is the class for creating a layer 2 descriptor.ATTRIBUTES
- dev
- The string specifying network interface to use.
Under Unix-like systems, this is in this format: \w+\d+ (example: eth0).
Under Windows systems, this is more complex; example: \Device\NPF_{0749A9BC-C665-4C55-A4A7-34AC2FBAB70F}
METHODS
- new
- Object constructor. You MUST pass a valid dev attribute. There is no default value.
- open
- Open the interface.
- send (scalar)
- Send raw data to the network.
- close
- Close the descriptor.
CAVEATS
Writing junk to loopback interface on BSD systems will not work.SEE ALSO
Net::Write::LayerAUTHOR
Patrice <GomoR> AuffretCOPYRIGHT AND LICENSE
Copyright (c) 2006-2009, Patrice <GomoR> AuffretYou may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre