Net::W...Layer4(3pm)
β¨ Net::Write::Layer4 β¨
okay bestie, gather round π this is Net::Write::Layer4 from the User Contributed Perl Documentation, and it's giving transport layer descriptor energy. layer 4. the big leagues. we're sending raw data over the network and we're doing it with our whole chest π«Ά
πΈ NAME πΈ
Net::Write::Layer4 β it's an object for a transport layer (layer 4) descriptor. that's it, that's the whole vibe.
π SYNOPSIS π
here's the whole thing in action, copy it exactly, no cap:
use Net::Write::Layer qw(:constants);
use Net::Write::Layer4;
my $desc = Net::Write::Layer4->new(
dst => '192.168.0.1',
protocol => NW_IPPROTO_TCP,
family => NW_AF_INET,
);
$desc->open;
$desc->send('G'x666);
$desc->close;
look at her. open, send, close. a whole little lifecycle arc πβ¨ iconic.
π DESCRIPTION π
so basically: this is the class for creating a layer 4 descriptor. that's the tea. that's what she does. periodt.
π¦ ATTRIBUTES π¦
dstβ the target IPv4 or IPv6 address that we're gonna send frames to. like, where the packets are going, bestie π¬familyβ the address family. for the full list of options, go peek at theCONSTANTSsection of Net::Write::Layer.protocolβ which transport layer protocol we're using. again, theCONSTANTSsection of Net::Write::Layer has the whole menu π
β METHODS β
newβ the object constructor, obviously π . you MUST pass a validdstattribute, no skipping that, she will not work without it. the default values are:protocol:NW_IPPROTO_TCPfamily:NW_AF_INET
and if something goes wrong? it returns undef on error. sad girl hours π
openβ opens the interface. returnsundefon error.send(scalar) β sends raw data to the network. this is the main character moment honestly π₯closeβ closes the descriptor. bye bestie π
π CAVEATS π
okay this one's important. it does not work at all under Win32 systems. like, not even a little. ngl it's because they can't send frames at layer 4. that's just the situation, we don't make the rules π
π SEE ALSO π
- Net::Write::Layer β go read that one too, it's the family π
π AUTHOR π
Patrice <GomoR> Auffret. an absolute legend, fr fr π«Ά
π COPYRIGHT AND LICENSE π
Copyright (c) 2006-2015, Patrice <GomoR> Auffret
you may distribute this module under the terms of the Artistic license. see the LICENSE.Artistic file in the source distribution archive for the full deets β¨
<aqua>and that's the whole page babes</aqua> π¦ this was perl v5.36.0, dated 2022-10-13, and it's the Net::Write::Layer4 page from the User Contributed Perl Documentation. stan a layer 4 girlie. slay, stay safe, and always close your descriptors πβ¨π
π¦ 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