Net::Server::Proto::UDP(3pm)

Net::Server::Proto::UDP3pm

Net::server udp protocol.

Usage

See Net::Server::Proto.

Overview

Protocol module for Net::Server. This module implements the SOCK_DGRAM socket type under INET (also known as UDP). See Net::Server::Proto.

Parameters

The following parameters may be specified in addition to normal command line parameters for a Net::Server. See Net::Server for more information on reading arguments.

udp_recv_len

Specifies the number of bytes to read from the UDP connection handle. Data will be read into $self->{'server'}->{'udp_data'}. Default is 4096. See IO::Socket::INET and recv.

udp_recv_flags

See recv. Default is 0.

udp_broadcast

Default is undef.

Quick parameter list

  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.

"connect"

Called when actually binding the port. Handles default parameters before calling parent method.

Licence

Distributed under the same terms as Net::Server

Releases

12 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

From perl-net-server 2.018-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.