Net::Se...oto::UDP(3)

πŸ’… NAME

Net::Server::Proto::UDP β€” the Net::Server UDP protocol module, bestie. It's literally the plug-in that makes Net::Server speak datagrams. πŸ¦‹

Oh and hiiiii, you're reading the Net::Se...oto::UDP(3) page from the User Contributed Perl Documentation β€” yes, that whole glorious set. Pull up a chair. πŸŽ€

✨ SYNOPSIS ✨

Ngl, there's no synopsis of its own here β€” go see Net::Server::Proto. That's where the actual deets live. πŸ‘‘

🌸 DESCRIPTION 🌸

So this is a protocol module for Net::Server, okay? Its whole personality is implementing the SOCK_DGRAM socket type under INET β€” yep, that's UDP, the "fire and forget" icon we all know and love. πŸ’Œ

And again, for the full picture: see Net::Server::Proto. iykyk.

πŸ’– PARAMETERS πŸ’–

These ones can be specified on top of the normal command line parameters for a Net::Server. Wanna know how arguments get read? Net::Server has you covered, go look. 🫢

  • udp_recv_len β€” this is the number of bytes to read from the UDP connection handle, periodt. The data gets read into $self->{'server'}->{'udp_data'}. Default is 4096. Also: see IO::Socket::INET and recv. πŸ’…
  • udp_recv_flags β€” see recv. Default is 0. That's it, that's the whole vibe. ✨
  • udp_broadcast β€” default is undef. Living that undefined life, no cap. πŸ™ˆ

πŸ”₯ QUICK PARAMETER LIST πŸ”₯

Here's the little cheat sheet, copied exactly, highkey satisfying:

  Key               Value                    Default

  ## UDP protocol parameters
  udp_recv_len      \d+                      4096
  udp_recv_flags    \d+                      0
  udp_broadcast     bool                     undef

πŸ‘‘ INTERNAL METHODS πŸ‘‘

  • "object" β€” returns an object with parameters suitable for eventual creation of a IO::Socket::INET object listening on UDP. It's giving "setup era". 🌈
  • "connect" β€” called when actually binding the port. It handles the default parameters before calling the parent method. Main character energy, honestly. ⭐

🧚 LICENCE 🧚

Distributed under the same terms as Net::Server. Simple, iconic, done. πŸ’œ


Okay bestie, that's a wrap on Net::Se...oto::UDP(3) πŸ“ β€” this cutie is perl v5.42.0, dated 2023-03-15, brought to you by the User Contributed Perl Documentation girlies. Slay, go bind a port responsibly. πŸŽ€πŸ’–

πŸ“¦ where this page comes from