cvs: peardoc /en/package/networking/net-ipv4 atoh.xml calculate.xml htoa.xml ip2double.xml parseaddress.xml validateip.xml validatenetmask.xml
| From: | David Costa | Date: | Tue, 10 Feb 2004 21:05:37 +0000 |
| Subject: | cvs: peardoc /en/package/networking/net-ipv4 atoh.xml calculate.xml htoa.xml ip2double.xml parseaddress.xml validateip.xml validatenetmask.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-2505@lists.php.net to get a copy of this message | ||
gurugeek Tue Feb 10 16:05:37 2004 EDT
Added files:
/peardoc/en/package/networking/net-ipv4 atoh.xml calculate.xml
htoa.xml ip2double.xml
parseaddress.xml
validateip.xml
validatenetmask.xml
Log:
Net-Ipv4 documentation
http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/atoh.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/atoh.xml +++ peardoc/en/package/networking/net-ipv4/atoh.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.atoh"> <refnamediv> <refname>Net_IPv4::atoh()</refname> <refpurpose>Converts a dot-quad formatted IP address into a hexadecimal string</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>string <function>atoh</function></funcdef> <paramdef>string <parameter>$addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.atoh.desc"> &title.desc; <para> Converts dot-quad formatted IP address into a hexadecimal string - for example "192.168.1.0" to "c0a80100". </para> </refsect1> <refsect1 id="package.net.net-ipv4.atoh.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/calculate.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/calculate.xml +++ peardoc/en/package/networking/net-ipv4/calculate.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.calculate"> <refnamediv> <refname>Net_IPv4::calculate()</refname> <refpurpose>Calculates network information based on an IP address and netmask.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>calculate</function></funcdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.calculate.desc"> &title.desc; <para> Fully populates the object properties based on the IP address and netmask/bitmask properties. Once these two fields are populated, calculate() will perform calculations to determine the network and broadcast address of the network. </para> </refsect1> <refsect1 id="package.net.net-ipv4.calculate.example"> &title.example; <para> <example> <title>Calculating broadcast and network address</title> <programlisting role="php"> <![CDATA[ <?php require('Net/IPv4.php'); // create IPv4 object $ip_calc = new Net_IPv4(); // set variables $ip_calc->ip = "a192.168.1.10"; $ip_calc->netmask = "255.255.255.0"; /* alternative method with numerical values: $ip_calc->long = 3232235786; $ip_calc->bitmask = 24; */ // calculate $error = $ip_calc->calculate(); if (!is_object($error)) { // if returned true, output echo "Your network address: ".$ip_calc->network."<br />"; echo "Your broadcast address: ".$ip_calc->broadcast."<br />"; } else { // otherwise handle error echo "An error occured: ".$error->getMessage(); } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 id="package.net.net-ipv4.calculate.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.net.net-ipv4.calculate.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/htoa.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/htoa.xml +++ peardoc/en/package/networking/net-ipv4/htoa.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.htoa"> <refnamediv> <refname>Net_IPv4::htoa()</refname> <refpurpose>Converts a dot-quad formatted IP address into a hexadecimal string</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>string <function>htoa</function></funcdef> <paramdef>string <parameter>$addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.htoa.desc"> &title.desc; <para> Converts hexadecimal string to a dot-quad formatted IP address - for example "c0a80100" to "192.168.1.0". </para> </refsect1> <refsect1 id="package.net.net-ipv4.htoa.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/ip2double.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/ip2double.xml +++ peardoc/en/package/networking/net-ipv4/ip2double.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.ip2double"> <refnamediv> <refname>Net_IPv4::ip2double()</refname> <refpurpose>Converts an IP address to a PHP double.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>string <function>ip2double</function></funcdef> <paramdef>string <parameter>$ip_addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.ip2double.desc"> &title.desc; <para> Converts an IP address to a PHP double. A double is, in contrast to ip2long's integer, not signed and may be more comfortable when presented to the user. </para> </refsect1> <refsect1 id="package.net.net-ipv4.ip2double.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/parseaddress.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/parseaddress.xml +++ peardoc/en/package/networking/net-ipv4/parseaddress.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.parseaddress"> <refnamediv> <refname>Net_IPv4::parseAddress()</refname> <refpurpose>Parse a CIDR address (address/netmask combination).</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>parseAddress</function></funcdef> <paramdef>string <parameter>$address</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.parseaddress.desc"> &title.desc; <para> Parses a Classless Inter-Domain Routing address (e.g. 192.168.1.0/24) and stores information in the object variables network, ip, netmask, broadcast, long and bitmask. </para> </refsect1> <refsect1 id="package.net.net-ipv4.parseaddress.example"> &title.example; <para> <example> <title>How to get netmask and broadcast from CIDR address</title> <programlisting role="php"> <![CDATA[ <?php require('Net/IPv4.php'); $cidr = '192.168.0.50/16'; $net = Net_IPv4::parseAddress($cidr); echo $net->network; // 192.168.0.0 echo $net->ip; // 192.168.0.50 echo $net->broadcast; // 192.168.255.255 echo $net->bitmask; // 16 echo $net->long; // 3232235520 (long/double version of 192.168.0.50) echo $net->netmask; // 255.255.0.0 ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 id="package.net.net-ipv4.parseaddress.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.net.net-ipv4.parseaddress.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/validateip.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/validateip.xml +++ peardoc/en/package/networking/net-ipv4/validateip.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.validateip"> <refnamediv> <refname>Net_IPv4::validateIP()</refname> <refpurpose>Validate the syntax of the given IP adress.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>validateIP</function></funcdef> <paramdef>string <parameter>$ip_addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.validateip.desc"> &title.desc; <para> Validates the syntax of an IP address. Returns true if address is valid, false if not. </para> </refsect1> <refsect1 id="package.net.net-ipv4.validateip.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/validatenetmask.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/validatenetmask.xml +++ peardoc/en/package/networking/net-ipv4/validatenetmask.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.validatenetmask"> <refnamediv> <refname>Net_IPv4::validateNetmask()</refname> <refpurpose>Validate the syntax of the given netmask.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>validateNetmask</function></funcdef> <paramdef>string <parameter>$netmask</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.validatenetmask.desc"> &title.desc; <para> Validates the syntax of a dot-quad formatted netmask. Returns true if netmask is valid, false if not. </para> </refsect1> <refsect1 id="package.net.net-ipv4.validatenetmask.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/atoh.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/atoh.xml +++ peardoc/en/package/networking/net-ipv4/atoh.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.atoh"> <refnamediv> <refname>Net_IPv4::atoh()</refname> <refpurpose>Converts a dot-quad formatted IP address into a hexadecimal string</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>string <function>atoh</function></funcdef> <paramdef>string <parameter>$addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.atoh.desc"> &title.desc; <para> Converts dot-quad formatted IP address into a hexadecimal string - for example "192.168.1.0" to "c0a80100". </para> </refsect1> <refsect1 id="package.net.net-ipv4.atoh.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/calculate.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/calculate.xml +++ peardoc/en/package/networking/net-ipv4/calculate.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.calculate"> <refnamediv> <refname>Net_IPv4::calculate()</refname> <refpurpose>Calculates network information based on an IP address and netmask.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>calculate</function></funcdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.calculate.desc"> &title.desc; <para> Fully populates the object properties based on the IP address and netmask/bitmask properties. Once these two fields are populated, calculate() will perform calculations to determine the network and broadcast address of the network. </para> </refsect1> <refsect1 id="package.net.net-ipv4.calculate.example"> &title.example; <para> <example> <title>Calculating broadcast and network address</title> <programlisting role="php"> <![CDATA[ <?php require('Net/IPv4.php'); // create IPv4 object $ip_calc = new Net_IPv4(); // set variables $ip_calc->ip = "a192.168.1.10"; $ip_calc->netmask = "255.255.255.0"; /* alternative method with numerical values: $ip_calc->long = 3232235786; $ip_calc->bitmask = 24; */ // calculate $error = $ip_calc->calculate(); if (!is_object($error)) { // if returned true, output echo "Your network address: ".$ip_calc->network."<br />"; echo "Your broadcast address: ".$ip_calc->broadcast."<br />"; } else { // otherwise handle error echo "An error occured: ".$error->getMessage(); } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 id="package.net.net-ipv4.calculate.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.net.net-ipv4.calculate.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/htoa.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/htoa.xml +++ peardoc/en/package/networking/net-ipv4/htoa.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.htoa"> <refnamediv> <refname>Net_IPv4::htoa()</refname> <refpurpose>Converts a dot-quad formatted IP address into a hexadecimal string</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>string <function>htoa</function></funcdef> <paramdef>string <parameter>$addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.htoa.desc"> &title.desc; <para> Converts hexadecimal string to a dot-quad formatted IP address - for example "c0a80100" to "192.168.1.0". </para> </refsect1> <refsect1 id="package.net.net-ipv4.htoa.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/ip2double.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/ip2double.xml +++ peardoc/en/package/networking/net-ipv4/ip2double.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.ip2double"> <refnamediv> <refname>Net_IPv4::ip2double()</refname> <refpurpose>Converts an IP address to a PHP double.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>string <function>ip2double</function></funcdef> <paramdef>string <parameter>$ip_addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.ip2double.desc"> &title.desc; <para> Converts an IP address to a PHP double. A double is, in contrast to ip2long's integer, not signed and may be more comfortable when presented to the user. </para> </refsect1> <refsect1 id="package.net.net-ipv4.ip2double.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/parseaddress.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/parseaddress.xml +++ peardoc/en/package/networking/net-ipv4/parseaddress.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.parseaddress"> <refnamediv> <refname>Net_IPv4::parseAddress()</refname> <refpurpose>Parse a CIDR address (address/netmask combination).</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>parseAddress</function></funcdef> <paramdef>string <parameter>$address</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.parseaddress.desc"> &title.desc; <para> Parses a Classless Inter-Domain Routing address (e.g. 192.168.1.0/24) and stores information in the object variables network, ip, netmask, broadcast, long and bitmask. </para> </refsect1> <refsect1 id="package.net.net-ipv4.parseaddress.example"> &title.example; <para> <example> <title>How to get netmask and broadcast from CIDR address</title> <programlisting role="php"> <![CDATA[ <?php require('Net/IPv4.php'); $cidr = '192.168.0.50/16'; $net = Net_IPv4::parseAddress($cidr); echo $net->network; // 192.168.0.0 echo $net->ip; // 192.168.0.50 echo $net->broadcast; // 192.168.255.255 echo $net->bitmask; // 16 echo $net->long; // 3232235520 (long/double version of 192.168.0.50) echo $net->netmask; // 255.255.0.0 ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 id="package.net.net-ipv4.parseaddress.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.net.net-ipv4.parseaddress.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/validateip.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/validateip.xml +++ peardoc/en/package/networking/net-ipv4/validateip.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.validateip"> <refnamediv> <refname>Net_IPv4::validateIP()</refname> <refpurpose>Validate the syntax of the given IP adress.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>validateIP</function></funcdef> <paramdef>string <parameter>$ip_addr</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.validateip.desc"> &title.desc; <para> Validates the syntax of an IP address. Returns true if address is valid, false if not. </para> </refsect1> <refsect1 id="package.net.net-ipv4.validateip.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/networking/net-ipv4/validatenetmask.xml?r=1.1&p=1 Index: peardoc/en/package/networking/net-ipv4/validatenetmask.xml +++ peardoc/en/package/networking/net-ipv4/validatenetmask.xml <!-- $Revision: 1.1 $ --> <refentry id="package.net.net-ipv4.validatenetmask"> <refnamediv> <refname>Net_IPv4::validateNetmask()</refname> <refpurpose>Validate the syntax of the given netmask.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once('Net/IPv4.php'); </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>validateNetmask</function></funcdef> <paramdef>string <parameter>$netmask</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.net.net-ipv4.validatenetmask.desc"> &title.desc; <para> Validates the syntax of a dot-quad formatted netmask. Returns true if netmask is valid, false if not. </para> </refsect1> <refsect1 id="package.net.net-ipv4.validatenetmask.note"> &title.note; ¬e.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->