Net::W...::Layer(3pm)
π Net::W...::Layer π
okay bestie, welcome to the Net::W...::Layer manual page, she's part of the User Contributed Perl Documentation and honestly? she's the blueprint π
β¨ NAME β¨
Net::Write::Layer β base class and constants, no cap π
πΈ SYNOPSIS πΈ
use Net::Write::Layer qw(:constants);
that's it. that's the whole entrance. iconic behavior honestly β¨
π¦ DESCRIPTION π¦
okay so this is the base class for Net::Write::Layer2, Net::Write::Layer3 and Net::Write::Layer4. like, she's the mother of the family π
and what does she do? she provides those layers with inheritable attributes, methods and constants. that's literally her whole job. she's giving supportive parent energy, not main character β she lets the kids shine π«Ά
π ATTRIBUTES π
devβ the network interface you're using. the lil door your packets walk out of πͺdstβ the target IPv4 or IPv6 address. where the vibes are being sent π¬protocolβ the transport layer protocol you want (TCP, UDP, ...). pick your fighter βοΈfamilyβ the adresse family to use (NW_AF_INET,NW_AF_INET6). yes the original says "adresse", we're keeping it, iykyk π
π METHODS π
newβ the object constructor. returnsundefon error. so like, if it hands you nothing back, that's aundef, not a maybe π«openβ opens the descriptor, for when you are ready to send. returnsundefon error. open it when you're actually ready, bestie, not before π«send (scalar)β sends the raw data passed as a parameter. returnsundefon failure, true otherwise. so real ones succeed, and theundefis the flop era πcloseβ closes the descriptor. say bye, be polite πnw_getsaddrnw_inet_ptonβ internal functions. not for us, they're doing backstage work, respect the crew π οΈ
π CONSTANTS π
address family constants β for use with the family attribute π
NW_AF_INETNW_AF_INET6NW_AF_UNSPEC
transport layer protocol constants β for use with the protocol attribute π₯
NW_IPPROTO_IPNW_IPPROTO_IPv6NW_IPPROTO_ICMPv4NW_IPPROTO_TCPNW_IPPROTO_UDPNW_IPPROTO_ICMPv6
mostly used internally π
NW_IP_HDRINCLNW_IPPROTO_RAW
π SEE ALSO π
Net::Write::Layer2, Net::Write::Layer3, Net::Write::Layer4
go read the whole squad fr fr π
β AUTHOR β
Patrice <GomoR> Auffret β the legend themselves π
π«Ά COPYRIGHT AND LICENSE π«Ά
Copyright (c) 2006-2015, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive. π
ok and that's the whole page, you ate that π no notes, periodt.
this was perl v5.36.0, dated 2022-10-13, and you've been reading Net::W...::Layer(3pm) β drink water, take your meds, and go packet-craft responsibly, bestie πβ¨
π¦ where this page comes from
- ubuntu noble: libnet-write-perl 1.10-3 Β· Artistic-1.0-Perl
- ubuntu resolute: libnet-write-perl 1.10-3 Β· Artistic-1.0-Perl
- ubuntu stonking: libnet-write-perl 1.10-3 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms