Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/UNIXServer/accept_nonblock-i.ri
Arrière
U:RDoc::AnyMethod[iI"accept_nonblock:EFI"UNIXServer#accept_nonblock;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I":Accepts an incoming connection using accept(2) after ;TI";O_NONBLOCK is set for the underlying file descriptor. ;TI"CIt returns an accepted UNIXSocket for the incoming connection.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;To:RDoc::Markup::Verbatim; [I"require 'socket' ;TI"(serv = UNIXServer.new("/tmp/sock") ;TI"%begin # emulate blocking accept ;TI"# sock = serv.accept_nonblock ;TI"+rescue IO::WaitReadable, Errno::EINTR ;TI" IO.select([serv]) ;TI" retry ;TI" end ;TI"## sock is an accepted socket. ;T:@format0o; ; [I"NRefer to Socket#accept for the exceptions that may be thrown if the call ;TI")to UNIXServer#accept_nonblock fails.;T@o; ; [I"XUNIXServer#accept_nonblock may raise any error corresponding to accept(2) failure, ;TI""including Errno::EWOULDBLOCK.;T@o; ; [I"bIf the exception is Errno::EWOULDBLOCK, Errno::EAGAIN, Errno::ECONNABORTED or Errno::EPROTO, ;TI")it is extended by IO::WaitReadable. ;TI"[So IO::WaitReadable can be used to rescue the exceptions for retrying accept_nonblock.;T@o; ; [I"OBy specifying a keyword argument _exception_ to +false+, you can indicate ;TI"Nthat accept_nonblock should not raise an IO::WaitReadable exception, but ;TI"0return the symbol +:wait_readable+ instead.;T@S;; i;I"See;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"UNIXServer#accept;To;;0; [o; ; [I"Socket#accept;T: @fileI"ext/socket/lib/socket.rb;T:0@omit_headings_from_table_of_contents_below0I"9unixserver.accept_nonblock([options]) => unixsocket ;T0[ I"(exception: true);T@>FI"UNIXServer;TcRDoc::NormalClass00
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.01 |
proxy
|
phpinfo
|
Réglages