luk             Thu Jun 13 18:40:52 2002 EDT

  Added files:                 
    /phpdoc-cs/reference/network        reference.xml 
    /phpdoc-cs/reference/network/functions      checkdnsrr.xml closelog.xml 
                                                debugger-off.xml 
                                                debugger-on.xml 
                                                define-syslog-variables.xml 
                                                fsockopen.xml 
  Log:
  
  
  

Index: phpdoc-cs/reference/network/reference.xml
+++ phpdoc-cs/reference/network/reference.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->
 <reference id="ref.network">
  <title>S��ov� funkce</title>
  <titleabbrev>S��</titleabbrev>

&reference.network.functions;

 </reference>
 
<!-- 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:
 -->

Index: phpdoc-cs/reference/network/functions/checkdnsrr.xml
+++ phpdoc-cs/reference/network/functions/checkdnsrr.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.checkdnsrr">
   <refnamediv>
    <refname>checkdnsrr</refname>
    <refpurpose>
     Ov��� DNS z�znamy odpov�daj�c� dan�mu n�zvu po��ta�e na Internetu nebo
     jeho IP adrese.
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>checkdnsrr</methodname>
      <methodparam><type>string</type><parameter>host</parameter></methodparam>
      <methodparam 
choice="opt"><type>string</type><parameter>type</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Prohled� DNS na z�znamy typu <parameter>type</parameter>, odpov�daj�c�
     n�zvu <parameter>host</parameter>. Vrac� &true;, pokud najde n�jak�
     z�znamy a &false;, pokud nic nenajde nebo nastane chyba.
    </simpara>
    <simpara>
     <parameter>type</parameter> m��e b�t jeden z t�chto: A, MX, NS, SOA,
     PTR, CNAME, or ANY.  Implicitn� je MX.
    </simpara>
    <simpara>
     <parameter>Host</parameter> m��e b�t jak IP adresa (v "te�kov�" notaci),
     tak n�zev stroje.
    </simpara>
    &note.no-windows;
    <simpara>
     Viz tak� <function>getmxrr</function>,
     <function>gethostbyaddr</function>,
     <function>gethostbyname</function>,
     <function>gethostbynamel</function>, a manu�lovou str�nku named(8).
    </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
 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:
 -->

Index: phpdoc-cs/reference/network/functions/closelog.xml
+++ phpdoc-cs/reference/network/functions/closelog.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.closelog">
   <refnamediv>
    <refname>closelog</refname>
    <refpurpose>Zav�e spojen� do syst�mov�ho protokolu</refpurpose> 
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>closelog</methodname>
      <void/>
     </methodsynopsis>
    <para>
     <function>closelog</function> zav�e deskriptor pou�it� k z�pisu do
     syst�mov�ho protokolu. Pou�it�
     <function>closelog</function> je nepovinn�.
    </para>
    <para>
     Viz tak� <function>define_syslog_variables</function>,
     <function>syslog</function> a
     <function>openlog</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:
 -->

Index: phpdoc-cs/reference/network/functions/debugger-off.xml
+++ phpdoc-cs/reference/network/functions/debugger-off.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.debugger-off">
   <refnamediv>
    <refname>debugger_off</refname>
    <refpurpose>Vypne vnit�n� PHP debugger</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>debugger_off</methodname>
      <void/>
     </methodsynopsis>
    <para>
     Vypne vnit�n� PHP debugger. Na debuggeru st�le prob�h� v�voj.
    </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:
 -->

Index: phpdoc-cs/reference/network/functions/debugger-on.xml
+++ phpdoc-cs/reference/network/functions/debugger-on.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.debugger-on">
   <refnamediv>
    <refname>debugger_on</refname>
    <refpurpose>Zapne vnit�n� PHP debugger</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>debugger_on</methodname>
      <methodparam><type>string</type><parameter>address</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zapne vnit�n� PHP debugger s p�ipojen�m na
     <parameter>address</parameter>.  Na debuggeru st�le prob�h� v�voj.
    </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:
 -->

Index: phpdoc-cs/reference/network/functions/define-syslog-variables.xml
+++ phpdoc-cs/reference/network/functions/define-syslog-variables.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.define-syslog-variables">
   <refnamediv>
    <refname>define_syslog_variables</refname>
    <refpurpose>Inicializuje v�echny konstanty souvisej�c� se syst�mov�m
    protokolem</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>void</type><methodname>define_syslog_variables</methodname>
      <void/>
     </methodsynopsis>
    <para>
     Inicializuje v�echny konstanty pou�it� ve funkc�ch syst�mov�ho protokolu.
    </para>
    <para>
     Viz tak� <function>openlog</function>,
     <function>syslog</function> a
     <function>closelog</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:
 -->

Index: phpdoc-cs/reference/network/functions/fsockopen.xml
+++ phpdoc-cs/reference/network/functions/fsockopen.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.fsockopen">
   <refnamediv>
    <refname>fsockopen</refname>
    <refpurpose>
     Otev�e socketov� spojen� v internetov� nebo unixov� dom�n�.
    </refpurpose> 
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>fsockopen</methodname>
      <methodparam><type>string</type><parameter>hostname</parameter></methodparam>
      <methodparam><type>int</type><parameter>port</parameter></methodparam>
      <methodparam 
choice="opt"><type>int</type><parameter>errno</parameter></methodparam>
      <methodparam 
choice="opt"><type>string</type><parameter>errstr</parameter></methodparam>
      <methodparam 
choice="opt"><type>float</type><parameter>timeout</parameter></methodparam>
     </methodsynopsis>
    <para>
     Iniciuje proudov� spojen� v internetov� (AF_INET, za pou�it� TCP nebo
     UDP) nebo unixov� (AF_UNIX) dom�n�. Pro internetovou dom�nu otev�e TCP
     kan�l na stroj <parameter>hostname</parameter> na port
     <parameter>port</parameter>.  <parameter>hostname</parameter> v takov�m
     p��pad� m��e b�t pln� ur�en� dom�nov� jm�no nebo IP adresa. Pro spojen�
     UDP mus�te explicitn� specifikovat protokol p�ed�azen�m
     '<literal>udp://</literal>' p�ed <parameter>hostname</parameter>.
     V unixov� dom�n� se <parameter>hostname</parameter> pou�ije jako cesta
     k socketu <parameter>port</parameter> se pak mus� nastavit na 0.
     Nepovinn� parametr <parameter>timeout</parameter> se m��e pou��t
     k nastaven� time-outu pro syst�mov� vol�n� connect.
    </para>
    <para>
     Od PHP 4.3.0, pokud jste PHP zkompilovali s podporou OpenSSL, m��ete
     p�ed <parameter>hostname</parameter> p�ed�adit
     '<literal>ssl://</literal>' nebo '<literal>tls://</literal>' pro pou�it�
     SSL nebo TSL spojen� na vzd�len� stroj p�es TCP/IP.     
    </para>
    <para>
     <function>fsockopen</function> vrac� deskriptor souboru, kter� lze
     pou��t s jin�mi souborov�mi funkcemi (nap�.
     <function>fgets</function>, <function>fgetss</function>,
     <function>fputs</function>, <function>fclose</function> a
     <function>feof</function>).
    </para>
    <para>
     Pokud vol�n� sel�e, vrac� funkce &false;, a pokud jsou p��tomny nepovinn�
     parametry <parameter>errno</parameter> a <parameter>errstr</parameter>,
     budou nastaveny na aktu�ln� chybovou �rove� v syst�mov�m vol�n�
     <literal>connect()</literal>. Je-li vr�cen� hodnota v
     <parameter>errno</parameter> rovna <literal>0</literal> a funkce vr�tila
     &false;, znamen� to, �e chyba nastala p�ed vol�n�m
     <literal>connect()</literal>. Nej�ast�ji je to kv�li probl�mu p�i
     inicializaci socketu. Uv�domte si, �e argumenty
     <parameter>errno</parameter> a <parameter>errstr</parameter> se v�dy
     p�ed�vaj� odkazem.
    </para>
    <para>
     V z�vislosti na prost�ed� nemus� b�t k dispozici unixov� dom�na nebo
     voliteln� parametr timeout.
    </para>
    <para>
     Socket se implicitn� otev�e v blokuj�c�m re�imu. Do neblokuj�c�ho
     re�imu ho m��ete p�epnout pou�it�m
     <function>socket_set_blocking</function>.
     <example>
      <title><function>fsockopen</function> P��klad</title>
      <programlisting role="php">
<![CDATA[
<?php
$fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30);
if (!$fp) {
    echo "$errstr ($errno)<br>\n";
} else {
    fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n");
    while (!feof($fp)) {
        echo fgets ($fp,128);
    }
    fclose ($fp);
}
?>
]]>
      </programlisting>
     </example>
     Dal�� (n��e uveden�) p��klad ukazuje, jak z�skat datum a �as z UDP
     slu�by "daytime" (port 13) na va�em vlastn�m po��ta�i.
     <example>
     <title>Pou�it� UDP spojen�</title>
     <programlisting role="php">
<![CDATA[
<?php
$fp = fsockopen("udp://127.0.0.1", 13, $errno, $errstr);
if (!$fp) {
    echo "CHYBA: $errno - $errstr<br>\n";
} else {
    fwrite($fp,"\n");
    echo fread($fp, 26);
    fclose($fp);
}
?>
]]>
     </programlisting>
     </example>
     <note>
      <para>Parametr timeout by zaveden v PHP 3.0.9 a podpora UDP v PHP 4.
      </para>
     </note>
     Viz tak� <function>pfsockopen</function>, 
     <function>socket_set_blocking</function>,
     <function>socket_set_timeout</function>, <function>fgets</function>,
     <function>fgetss</function>, <function>fputs</function>,
     <function>fclose</function>, <function>feof</function> a
     <link linkend="ref.curl">roz���en� Curl</link>.
    </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:
 -->

Reply via email to