---
name: "Net::Server::Proto::UDP"
section: "3pm"
platform: "linux"
package: "perl-net-server"
version: "2.018-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Net::Server::Proto::UDP"
---

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

Net::Server UDP protocol.

## NAME

Net::Server::Proto::UDP - Net::Server UDP protocol.

## SYNOPSIS

See Net::Server::Proto.

## DESCRIPTION

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
