| 1 | ############################################################################## | ||
| 2 | # | ||
| 3 | # Net::Tools perl module | ||
| 4 | # Copyright (c) 2013-2026 Vladi Belperchinov-Shabanski "Cade" | ||
| 5 | # <cade@noxrun.com> <cade@bis.bg> <cade@cpan.org> | ||
| 6 | # http://cade.noxrun.com/ | ||
| 7 | # | ||
| 8 | # GPL | ||
| 9 | # | ||
| 10 | ############################################################################## | ||
| 11 | package Net::Tools; | ||
| 12 | use strict; | ||
| 13 | |||
| 14 | our $VERSION = '1.60'; | ||
| 15 | |||
| 16 | 1; | ||
| 17 | |||
| 18 | =pod | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Net::Tools - socket and network functions, split from Data::Tools | ||
| 23 | |||
| 24 | =head1 SYNOPSIS | ||
| 25 | |||
| 26 | use Net::Tools::Socket; # socket I/O, length-prefixed messages | ||
| 27 | use Net::Tools::Socket::Protocols; # serialized messages | ||
| 28 | use Net::Tools::Socket::Pair; # non-blocking messages over socketpair() | ||
| 29 | use Net::Tools::Socket::Err; # $SOCK_ERR, $SOCK_ERRSTR, SOCK_E_* | ||
| 30 | |||
| 31 | =head1 DESCRIPTION | ||
| 32 | |||
| 33 | Net::Tools itself has no functions, it only holds the package version. The | ||
| 34 | functions are in the sub-modules: | ||
| 35 | |||
| 36 | * Net::Tools::Socket (socket I/O, length-prefixed messages) | ||
| 37 | * Net::Tools::Socket::Protocols (serialized messages over Net::Tools::Socket) | ||
| 38 | * Net::Tools::Socket::Pair (non-blocking messages over socketpair()) | ||
| 39 | * Net::Tools::Socket::Err (error codes shared by the socket modules) | ||
| 40 | |||
| 41 | Up to version 1.55 these modules were part of Data::Tools as | ||
| 42 | Data::Tools::Socket, Data::Tools::Socket::Protocols, | ||
| 43 | Data::Tools::Socket::Pair and Data::Tools::Socket::Err. Only the package | ||
| 44 | names changed, replace "Data::Tools::Socket" with "Net::Tools::Socket". | ||
| 45 | |||
| 46 | =head1 REQUIRED MODULES | ||
| 47 | |||
| 48 | * Data::Tools (Net::Tools::Socket::Protocols only) | ||
| 49 | |||
| 50 | =head1 GITHUB REPOSITORY | ||
| 51 | |||
| 52 | git@github.com:cade-vs/perl-net-tools.git | ||
| 53 | |||
| 54 | git clone https://github.com/cade-vs/perl-net-tools.git | ||
| 55 | |||
| 56 | =head1 AUTHOR | ||
| 57 | |||
| 58 | Vladi Belperchinov-Shabanski "Cade" | ||
| 59 | <cade@noxrun.com> <cade@bis.bg> <cade@cpan.org> | ||
| 60 | http://cade.noxrun.com/ | ||
| 61 | |||
| 62 | =cut |