1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-23 23:02:09 +01:00
Files
archived-doc-tr/reference/sockets/functions/socket-set-block.xml
2021-06-14 17:07:08 +03:00

125 lines
3.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14dc7c47365f2b71f6c907a5ba5bccf42534d5a9 Maintainer: nilgun Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-set-block">
<refnamediv>
<refname>socket_set_block</refname>
<refpurpose>Soketi engelleme kipine sokar</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>socket_set_block</methodname>
<methodparam><type>Socket</type><parameter>soket</parameter></methodparam>
</methodsynopsis>
<para>
Belirtilen <parameter>soket</parameter> üzerinden
<constant>O_NONBLOCK</constant> seçeneğini kaldırır.
</para>
<para>
Bir engellenen soket üzerinde yapılan işlemler (bağlanma, kabul, alım,
gönderim gibi) sırasında bir sinyal gelmedikçe, okunacak veri yoksa veya
veri yazılamıyorsa betik işlem başlayana kadar bekler.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>soket</parameter></term>
<listitem>
<para>
<function>socket_create</function> veya
<function>socket_accept</function> ile oluşturulmuş geçerli bir
<classname>Socket</classname> örneği.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&sockets.changelog.socket-param;
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>socket_set_block</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
$socket = socket_create_listen(1223);
socket_set_block($socket);
socket_accept($socket);
?>
]]>
</programlisting>
<para>
Bu örnekte, tüm arabirimlerin 1223. portunda bir dinleme soketi
oluşturulmakta ve soket bekleme kipine (<constant>O_BLOCK</constant>)
alınmaktadır. <function>socket_accept</function> kabul edilecek bir
bağlantı olana kadar bekleyecektir.
</para>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>socket_set_nonblock</function></member>
<member><function>socket_set_option</function></member>
</simplelist>
</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:"~/.phpdoc/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
-->