Net::Se...o::UNIX(3)

πŸŽ€ NAME πŸŽ€

Okay bestie, welcome to the Net::Se...o::UNIX(3) page in the User Contributed Perl Documentation β€” and it is literally serving main-character energy for Net::Server::Proto::UNIX, aka the Net::Server UNIX protocol. That's the whole NAME vibe, no cap. πŸ’…

✨ SYNOPSIS ✨

See Net::Server::Proto.

That's it. Short, iconic, zero filler. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

So this is a protocol module for Net::Server. It implements the UNIX SOCK_STREAM socket type. For the full protocol tea, see Net::Server::Proto. ✨

Any sockets created during startup will be chown'ed to the user and group specified in the startup arguments. Ownership handled, bestie. 🫢

🌸 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. iykyk. πŸ‘‘

🐚 unix_type

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). πŸŽ€

However β€” and listen, bestie β€” 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. That's the move. πŸ’…

🧚 METHODS 🧚

πŸͺ„ NS_unix_path/NS_unix_type

In addition to the standard NS_ methods of Net::Server::Proto classes, the UNIX types also have legacy calls to NS_unix_path and NS_unix_type. Vintage but still invited to the party. πŸ¦‹

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. Welcome back, icons. 🫢

πŸ‘‘ QUICK PARAMETER LIST πŸ‘‘

Here's the cheat sheet, bestie β€” same keys, same values, same defaults, no crumbs left behind. πŸ“

πŸ“ deprecated UNIX socket parameters

  • unix_type β€” value: (SOCK_STREAM|SOCK_DGRAM), default: SOCK_STREAM.
  • port β€” value: "filename", default: undef.

🌈 more recent usage

  • port β€” value: "filename / UNIX", default: (none listed).
  • port β€” value: "filename / UNIXDGRAM", default: (none listed).

πŸ’– LICENCE πŸ’–

Distributed under the same terms as Net::Server. That's the legal tea, short and sweet. πŸ“

mwah πŸ’‹ β€” brought to you by perl v5.42.0, dated 2023-03-15. Bye bestie! 🫢✨

πŸ“¦ where this page comes from