cvs: phpdoc-ja /reference/network/functions inet-ntop.xml inet-pton.xml
| From: | TAKAGI Masahiro | Date: | Mon, 25 Jul 2005 07:02:25 +0000 |
| Subject: | cvs: phpdoc-ja /reference/network/functions inet-ntop.xml inet-pton.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1086@lists.php.net to get a copy of this message | ||
takagi Mon Jul 25 03:02:25 2005 EDT
Added files:
/phpdoc-ja/reference/network/functions inet-pton.xml inet-ntop.xml
Log:
add japanese manual.
http://cvs.php.net/co.php/phpdoc-ja/reference/network/functions/inet-pton.xml?r=1.1&p=1
Index: phpdoc-ja/reference/network/functions/inet-pton.xml
+++ phpdoc-ja/reference/network/functions/inet-pton.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready -->
<refentry id="function.inet-pton">
<refnamediv>
<refname>inet_pton</refname>
<refpurpose>
人éãèªããå½¢å¼ã® IP
ã¢ãã¬ã¹ããããã¯ãããå½¢å¼ã«å¤æãã
</refpurpose>
</refnamediv>
<refsect1>
<title>説æ</title>
<methodsynopsis>
<type>string</type><methodname>inet_pton</methodname>
<methodparam><type>string</type><parameter>address</parameter></methodparam>
</methodsynopsis>
<simpara>
ãã®é¢æ°ã¯ã人éãèªããå½¢å¼ã® IPv4
ããã㯠IPv6
ï¼PHP ã IPv6
ãµãã¼ããæå¹ã«ãã¦ãã«ãããã¦ããå ´åï¼ã®ã¢ãã¬ã¹ã
32 ãããããã㯠128
ãããã®ãã¤ããªå½¢å¼ã«å¤æãã¾ãã
</simpara>
<example>
<title><function>inet_pton</function> ã®ä¾</title>
<programlisting role="php">
<![CDATA[
<?php
$in_addr = inet_pton('127.0.0.1');
$in6_addr = inet_pton('::1');
?>
]]>
</programlisting>
</example>
¬e.no-windows;
<para>
<function>ip2long</function>ã
<function>inet_ntop</function>ã
ããã³ <function>long2ip</function>
ãåç
§ãã ããã
</para>
</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
indent-tabs-mode:nil
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/phpdoc-ja/reference/network/functions/inet-ntop.xml?r=1.1&p=1
Index: phpdoc-ja/reference/network/functions/inet-ntop.xml
+++ phpdoc-ja/reference/network/functions/inet-ntop.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready -->
<refentry id="function.inet-ntop">
<refnamediv>
<refname>inet_ntop</refname>
<refpurpose>
ããã¯ãããã¤ã³ã¿ã¼ãããã¢ãã¬ã¹ãã人éãèªããå½¢å¼ã«å¤æãã
</refpurpose>
</refnamediv>
<refsect1>
<title>説æ</title>
<methodsynopsis>
<type>string</type><methodname>inet_ntop</methodname>
<methodparam><type>string</type><parameter>in_addr</parameter></methodparam>
</methodsynopsis>
<simpara>
ãã®é¢æ°ã¯ 32 ããã IPv4 å½¢å¼ãããã¯
128 ããã IPv6 å½¢å¼
ï¼PHP ã IPv6
ãµãã¼ããæå¹ã«ãã¦ãã«ãããã¦ããå ´åï¼ã®ã¢ãã¬ã¹ã
æåå表ç¾ã®ã¢ãã¬ã¹ã«å¤æãã¾ãã失æããå ´åã¯
&false; ãè¿ãã¾ãã
</simpara>
<example>
<title><function>inet_ntop</function> ã®ä¾</title>
<programlisting role="php">
<![CDATA[
<?php
$packed = chr(127) . chr(0) . chr(0) . chr(1);
$expanded = inet_ntop($packed);
/* Outputs: 127.0.0.1 */
echo $expanded;
$packed = str_repeat(chr(0), 15) . chr(1);
$expanded = inet_ntop($packed);
/* Outputs: ::1 */
echo $expanded;
?>
]]>
</programlisting>
</example>
¬e.no-windows;
<para>
<function>long2ip</function>ã
<function>inet_pton</function>ã
ããã³ <function>ip2long</function>
ãåç
§ãã ããã
</para>
</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
indent-tabs-mode:nil
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
-->