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

## NAME
    [Net::Server::Proto::UNIX](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3AProto%3A%3AUNIX/markdown) - [Net::Server](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer/markdown) UNIX 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 UNIX SOCK_STREAM socket type. See
    [Net::Server::Proto](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3AProto/markdown).

    Any sockets created during startup will be chown'ed to the user and group specified in the
    startup arguments.

## 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.

    unix_type
        Can be either SOCK_STREAM or SOCK_DGRAM (default is SOCK_STREAM). This can also be passed on
        the port line (see [Net::Server::Proto](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3AProto/markdown)).

        However, this method is deprecated. If you want SOCK_STREAM - just use proto UNIX without
        any other arguments. If you'd like SOCK_DGRAM, use the new proto UNIXDGRAM.

## METHODS
    NS_unix_path/NS_unix_type
        In addition to the standard NS_ methods of [Net::Server::Proto](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer%3A%3AProto/markdown) classes, the UNIX types also
        have legacy calls to NS_unix_path and NS_unix_type.

        Since version 2.000, NS_unix_path is simply an alias to NS_port. NS_unix_type is now
        redundant with NS_proto.

        These methods were missing between version 2.000 and 2.003 but have been returned as legacy
        bridges.

## QUICK PARAMETER LIST
      Key               Value                    Default

      # deprecated UNIX socket parameters
      unix_type         (SOCK_STREAM|SOCK_DGRAM) SOCK_STREAM
      port              "filename"               undef

      # more recent usage
      port              "filename / UNIX"
      port              "filename / UNIXDGRAM"

## LICENCE
    Distributed under the same terms as [Net::Server](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AServer/markdown)

