cvs: peardoc /en/package/networking/net-ipv6 getaddresstype.xml getnetmask.xml isinnetmask.xml removenetmaskspec.xml

From: Date: Fri, 10 Feb 2006 13:12:23 +0000
Subject: cvs: peardoc /en/package/networking/net-ipv6 getaddresstype.xml getnetmask.xml isinnetmask.xml removenetmaskspec.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7497@lists.php.net to get a copy of this message
alexmerz Fri Feb 10 13:12:23 2006 UTC Added files: /peardoc/en/package/networking/net-ipv6 getaddresstype.xml getnetmask.xml isinnetmask.xml removenetmaskspec.xml Log: add new methods introduced in 1.1.0

http://cvs.php.net/viewcvs.cgi/peardoc/en/package/networking/net-ipv6/getaddresstype.xml?view=markup&rev=1.1 Index: peardoc/en/package/networking/net-ipv6/getaddresstype.xml +++ peardoc/en/package/networking/net-ipv6/getaddresstype.xml <!-- $Revision: 1.1 $ --> <refentry id="package.networking.net-ipv6.getaddresstype"> <refnamediv> <refname>Net_IPv6::getAddressType()</refname> <refpurpose>Returns the type of an IP address</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Net/IPv6.php'; </funcsynopsisinfo> <funcprototype> <funcdef>int <function>Net_IPv6::getAddressType</function></funcdef> <paramdef>string <parameter>$ip</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.networking.net-ipv6.getaddresstype.desc"> &title.desc; <para> RFC 1883, Section 2.3 describes several types of addresses in the IPv6 addresse space. This methods tries to find the type of address for the given IP. </para> <warning> <para> Several address types are markers for reserved spaces and as consequence a subject to change. </para> </warning> </refsect1> <refsect1 id="package.networking.net-ipv6.getaddresstype.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $ip</parameter> - the IP address in Hex format, compressed IPs are allowed </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.networking.net-ipv6.getaddresstype.return"> &title.returns; <para> <parameter>int</parameter> - the addresstype </para> <para> The type can be one of this constants: <itemizedlist> <listitem> <para><constant>NET_IPV6_MULTICAST</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_UNICAST_PROVIDER</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_LOCAL_LINK</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_LOCAL_SITE</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_UNKNOWN_TYPE</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_RESERVED_UNICAST_GEOGRAPHIC</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_RESERVED_IPX</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_RESERVED</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_RESERVED_NSAP</constant></para> </listitem> <listitem> <para><constant>NET_IPV6_UNASSIGNED</constant></para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.networking.net-ipv6.getaddresstype.note"> &title.note; &note.canstatic; <simpara> Method available since: Release 1.1.0 </simpara> </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/viewcvs.cgi/peardoc/en/package/networking/net-ipv6/getnetmask.xml?view=markup&rev=1.1 Index: peardoc/en/package/networking/net-ipv6/getnetmask.xml +++ peardoc/en/package/networking/net-ipv6/getnetmask.xml <!-- $Revision: 1.1 $ --> <refentry id="package.networking.net-ipv6.getnetmask"> <refnamediv> <refname>Net_IPv6::getNetmask()</refname> <refpurpose>Calculates the network prefix</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Net/IPv6.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>Net_IPv6::getNetmask</function></funcdef> <paramdef>string <parameter>$ip</parameter></paramdef> <paramdef>int <parameter><optional>$bits = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.networking.net-ipv6.getnetmask.desc"> &title.desc; <para> Calculates the network prefix based on the netmask bits. </para> </refsect1> <refsect1 id="package.networking.net-ipv6.getnetmask.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $ip</parameter> - the IP address in Hex format, compressed IPs are allowed </para> </listitem> <listitem> <para> <parameter>int $bits</parameter> - if the number of netmask bits is not part of the IP, you must provide the mumber of bits </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.networking.net-ipv6..getnetmask.return"> &title.returns; <para> <parameter>string</parameter> - the network prefix </para> </refsect1> <refsect1 id="package.networking.net-ipv6..getnetmask.note"> &title.note; &note.canstatic; <simpara> Method available since: Release 1.1.0 </simpara> </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/viewcvs.cgi/peardoc/en/package/networking/net-ipv6/isinnetmask.xml?view=markup&rev=1.1 Index: peardoc/en/package/networking/net-ipv6/isinnetmask.xml +++ peardoc/en/package/networking/net-ipv6/isinnetmask.xml <!-- $Revision: 1.1 $ --> <refentry id="package.networking.net-ipv6.isinnetmask"> <refnamediv> <refname>Net_IPv6::isInNetmask()</refname> <refpurpose>Checks if an IP is in a specific address space</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Net/IPv6.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>Net_IPv6::isInNetmask</function></funcdef> <paramdef>string <parameter>$ip</parameter></paramdef> <paramdef>string <parameter>$netmask</parameter></paramdef> <paramdef>int <parameter><optional>$bits = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.networking.net-ipv6.isinnetmask.desc"> &title.desc; <para> Checks if an (compressed) IP is in a specific address space. If the IP does not contain the number of netmask bits (for example: F8000::FFFF/16), then you have to use the <literal>$bits</literal> parameter. </para> </refsect1> <refsect1 id="package.networking.net-ipv6.isinnetmask.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $ip</parameter> - the IP address in Hex format, compressed IPs are allowed </para> </listitem> <listitem> <para> <parameter>string $netmask</parameter> - the netmask (for example: <literal>F800::</literal>) </para> </listitem> <listitem> <para> <parameter>int $bits</parameter> - if the number of netmask bits is not part of the IP, you must provide the mumber of bits </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.networking.net-ipv6.isinnetmask.return"> &title.returns; <para> <parameter>boolean</parameter> - &true;, if the IP is in the address space. </para> </refsect1> <refsect1 id="package.networking.net-ipv6.isinnetmask.note"> &title.note; &note.canstatic; <simpara> Method available since: Release 1.1.0 </simpara> </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/viewcvs.cgi/peardoc/en/package/networking/net-ipv6/removenetmaskspec.xml?view=markup&rev=1.1 Index: peardoc/en/package/networking/net-ipv6/removenetmaskspec.xml +++ peardoc/en/package/networking/net-ipv6/removenetmaskspec.xml <!-- $Revision: 1.1 $ --> <refentry id="package.networking.net-ipv6.removenetmaskspec"> <refnamediv> <refname>Net_IPv6::removeNetmaskSpec()</refname> <refpurpose>Removes the Netmask length specification</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Net/IPv6.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>Net_IPv6::removeNetmaskSpec</function></funcdef> <paramdef>string <parameter>$ip</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.networking.net-ipv6.removenetmaskspec.desc"> &title.desc; <para> Removes a possible existing netmask length specification in an IP addresse. </para> </refsect1> <refsect1 id="package.networking.net-ipv6.removenetmaskspec.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $ip</parameter> - the IP address in Hex format, compressed IPs are allowed </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.networking.net-ipv6.removenetmaskspec.return"> &title.returns; <para> <parameter>string</parameter> - the IP without netmask length specification. </para> </refsect1> <refsect1 id="package.networking.net-ipv6.removenetmaskspec.note"> &title.note; &note.canstatic; <simpara> Method available since: Release 1.1.0 </simpara> </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 -->
« previous php.pear.doc (#7497) next »