Net::W...::Layer(3pm)

πŸ“¦
version 1.10 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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. returns undef on error. so like, if it hands you nothing back, that's a undef, not a maybe 🫠
  • open β€” opens the descriptor, for when you are ready to send. returns undef on error. open it when you're actually ready, bestie, not before πŸ’«
  • send (scalar) β€” sends the raw data passed as a parameter. returns undef on failure, true otherwise. so real ones succeed, and the undef is the flop era 😭
  • close β€” closes the descriptor. say bye, be polite πŸ‘‹
  • nw_getsaddr
  • nw_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_INET
  • NW_AF_INET6
  • NW_AF_UNSPEC

transport layer protocol constants β€” for use with the protocol attribute πŸ”₯

  • NW_IPPROTO_IP
  • NW_IPPROTO_IPv6
  • NW_IPPROTO_ICMPv4
  • NW_IPPROTO_TCP
  • NW_IPPROTO_UDP
  • NW_IPPROTO_ICMPv6

mostly used internally πŸ™ˆ

  • NW_IP_HDRINCL
  • NW_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 (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