array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.stream-socket-accept.php', 1 => 'stream_socket_accept', ), 'up' => array ( 0 => 'ref.stream.php', 1 => 'Akım İşlevleri', ), 'prev' => array ( 0 => 'function.stream-set-write-buffer.php', 1 => 'stream_set_write_buffer', ), 'next' => array ( 0 => 'function.stream-socket-client.php', 1 => 'stream_socket_client', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/stream/functions/stream-socket-accept.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
stream_socket_accept — stream_socket_server() ile oluşturulmuş bir soketten bağlantı kabul eder
Evvelden stream_socket_server() ile oluşturulmuş bir soketten bağlantı kabul eder.
soket
Bağlantıyı kabul edecek sunucu soketi.
süre
Öntanımlı soket kabul zaman aşımını geçersiz kılar. Zaman saniye cinsinden belirtilir. Öntanımlı olarak, default_socket_timeout kullanılır.
hedef
Seçilen aktarıma dahil edilmişse ve kullanılabilirse bağlanacak istemcinin ismi (adresi).
Bilginize:
stream_socket_get_name() kullanarak daha sonra da saptanabilir.
Kabul edilen soket bağlantısına bir akım döner, başarısızlık durumunda false
döner.
Sürüm: | Açıklama |
---|---|
8.0.0 |
süre artık null olabiliyor.
|
Bu işlev UDP sunucu soketleri ile kullanılmamalıdır. Yerine, stream_socket_recvfrom() ve stream_socket_sendto() kullanın.