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 is4096. Also: seeIO::Socket::INETandrecv. πudp_recv_flagsβ seerecv. Default is0. That's it, that's the whole vibe. β¨udp_broadcastβ default isundef. 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 aIO::Socket::INETobject 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
- opensuse-leap 16.0: perl-Net-Server 2.014-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms