<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sockets.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.socket-connect.php',
    1 => 'socket_connect',
    2 => 'Soket &uuml;zerinde bir bağlantıyı ilklendirir',
  ),
  'up' => 
  array (
    0 => 'ref.sockets.php',
    1 => 'Soket İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.socket-cmsg-space.php',
    1 => 'socket_cmsg_space',
  ),
  'next' => 
  array (
    0 => 'function.socket-create.php',
    1 => 'socket_create',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/sockets/functions/socket-connect.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.socket-connect" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">socket_connect</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">socket_connect</span> &mdash; <span class="dc-title">Soket üzerinde bir bağlantıyı ilklendirir</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.socket-connect-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>socket_connect</strong></span>(<span class="methodparam"><span class="type"><a href="class.socket.php" class="type Socket">Socket</a></span> <code class="parameter">$soket</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$adres</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$port</code><span class="initializer"> = 0</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   <code class="parameter">soket</code> ile belirtilen <span class="classname"><a href="class.socket.php" class="classname">Socket</a></span>
   nesnesini kullanarak <code class="parameter">adres</code>&#039;e bir bağlantı başlatır.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.socket-connect-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">soket</code></dt>
     <dd>
      <p class="para">
       <span class="function"><a href="function.socket-create.php" class="function">socket_create()</a></span> ile oluşturulmuş geçerli bir
       <span class="classname"><a href="class.socket.php" class="classname">Socket</a></span> nesnesi.
      </p>
     </dd>
    
    
     <dt><code class="parameter">adres</code></dt>
     <dd>
      <p class="para">
       Soket, <strong><code><a href="sockets.constants.php#constant.af-inet">AF_INET</a></code></strong> türündeyse noktalı dördül
       gösterimle (<code class="literal">127.0.0.1</code> gibi) geçerli bir IPv4
       adresi, <strong><code><a href="sockets.constants.php#constant.af-inet6">AF_INET6</a></code></strong> türündeyse ve IPv6 desteği varsa
       geçerli bir IPv6 adresi (<code class="literal">::1</code> gibi) ya da
       <strong><code><a href="sockets.constants.php#constant.af-unix">AF_UNIX</a></code></strong> türündeyse Unix ailesinden bir
       soketin dosya yolu (<code class="literal">/var/run/daemon.sock</code> gibi)
       olmalıdır.
      </p>
     </dd>
    
    
     <dt><code class="parameter">port</code></dt>
     <dd>
      <p class="para">
       Bu bağımsız değişken sadece ve zorunlu olarak bir
       <strong><code><a href="sockets.constants.php#constant.af-inet">AF_INET</a></code></strong> veya <strong><code><a href="sockets.constants.php#constant.af-inet6">AF_INET6</a></code></strong> soketle
       ilişkilendirme sırasında gerekir ve bağlantının yapılacağı uzak konak
       üzerinde dinlenen bir portu belirtir.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.socket-connect-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner. Hata kodu <span class="function"><a href="function.socket-last-error.php" class="function">socket_last_error()</a></span> işlevi
   ile alınabilir. Bu hata kodunu <span class="function"><a href="function.socket-strerror.php" class="function">socket_strerror()</a></span>
   işlevine aktararak hatayı açıklayan dizgeyi alabilirsiniz.
  </p>
  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <p class="para">
    Soket engellenmeyen türde ise bu işlev işlemin sürdüğünü belirten bir
    hatayla hata kodunu güncelleyerek <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döndürür.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.socket-connect-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
<td>8.0.0</td><td><code class="parameter">soket</code> artık bir
<span class="classname"><a href="class.socket.php" class="classname">Socket</a></span> örneği olabiliyor; evvelce
<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> türündeydi.</td></tr>

     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">soket</code> artık <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> olabiliyor.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.socket-connect-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.socket-bind.php" class="function" rel="rdfs-seeAlso">socket_bind()</a> - Soketi bir isimle ilişkilendirir</span></li>
    <li><span class="function"><a href="function.socket-listen.php" class="function" rel="rdfs-seeAlso">socket_listen()</a> - Bir soketi bağlantı kabul etmek i&ccedil;in dinler</span></li>
    <li><span class="function"><a href="function.socket-create.php" class="function" rel="rdfs-seeAlso">socket_create()</a> - Bir soket oluşturur (iletişim i&ccedil;in bir u&ccedil;)</span></li>
    <li><span class="function"><a href="function.socket-last-error.php" class="function" rel="rdfs-seeAlso">socket_last_error()</a> - Soket &uuml;zerindeki son hatanın kodunu d&ouml;nd&uuml;r&uuml;r</span></li>
    <li><span class="function"><a href="function.socket-strerror.php" class="function" rel="rdfs-seeAlso">socket_strerror()</a> - Bir soket hatasıyla ilgili a&ccedil;ıklamayı d&ouml;nd&uuml;r&uuml;r</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>