# Net::Server::Proto::UDP - Net::Server UDP protocol. - perldoc - [phpMan]

## NAME
    [Net::Server::Proto::UDP](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3AProto%3A%3AUDP/markdown) - [Net::Server](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer/markdown) UDP protocol.

## SYNOPSIS
    See [Net::Server::Proto](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3AProto/markdown).

## DESCRIPTION
    Protocol module for [Net::Server](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer/markdown). This module implements the SOCK_DGRAM socket type under INET
    (also known as UDP). See [Net::Server::Proto](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3AProto/markdown).

## PARAMETERS
    The following parameters may be specified in addition to normal command line parameters for a
    [Net::Server](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer/markdown). See [Net::Server](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/IO%3A%3ASocket%3A%3AINET/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/IO%3A%3ASocket%3A%3AINET/markdown)
        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](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer/markdown)

