Name : perl-Text-Netstring
| |
Version : 0.07
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.6.1
| Date : 2023-07-20 18:31:55
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-Netstring-0.07-lp155.6.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl module for manipulation of netstrings
|
Description :
This module is a collection of functions to make use of netstrings in your perl programs. A _netstring_ is a string encoding used by, at least, the QMTP and QMQP email protocols.
* netstring_encode()
Encode the argument string, list of strings, or referenced list of strings as a netstring.
Supplying a scalar argument in a scalar context, or a list or list reference argument in list context, does what you\'d expect; encoding the scalar or each element of the list as appropriate. Supplying a list or list reference argument in a scalar context, however, returns a single scalar which is the concatenation of each element of the list encoded as a netstring.
* netstring_decode()
Decode the argument netstring, list of netstrings, or referenced list of netstrings returning the _interpretation_ of each. You should use \'netstring_verify()\' over any data before you try to decode it. An invalid netstring will be returned as an empty string.
The same scalar/list context handling as for netstring_encode() applies.
* netstring_verify()
Check the validity of the supplied netstring, list of netstrings or referenced list of netstrings. Returns a \'TRUE\' or \'FALSE\' value, or list of same, as appropriate. Supplying a list argument in a scalar context will return a single boolean value which is \'TRUE\' if and only if each element of the argument list was successfully verified, otherwise it\'s \'FALSE\'.
* netstring_read()
Read the next netstring from a socket reference supplied as an argument. The function returns a scalar which is the netstring read from the socket. You will need to use netstring_decode() on the return value to obtain the string _interpretation_. Returns undef in case of an error, or an empty string (\"\") if a premature EOF was encountered.
This function will regard a netstring claiming to be larger than 200,000,000 characters as an error, yielding undef.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/noarch |