| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/UNIXSocket/ |
Upload File : |
U:RDoc::AnyMethod[iI"
recvfrom:ETI"UNIXSocket#recvfrom;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I")Receives a message via _unixsocket_.;To:RDoc::Markup::BlankLine o;
; [I"8_maxlen_ is the maximum number of bytes to receive.;T@o;
; [I"?_flags_ should be a bitwise OR of Socket::MSG_* constants.;T@o;
; [I"H_outbuf_ will contain only the received data after the method call ;TI".even if it is not empty at the beginning.;T@o:RDoc::Markup::Verbatim; [I"'s1 = Socket.new(:UNIX, :DGRAM, 0)
;TI")s1_ai = Addrinfo.unix("/tmp/sock1")
;TI"s1.bind(s1_ai)
;TI"
;TI"'s2 = Socket.new(:UNIX, :DGRAM, 0)
;TI")s2_ai = Addrinfo.unix("/tmp/sock2")
;TI"s2.bind(s2_ai)
;TI"'s3 = UNIXSocket.for_fd(s2.fileno)
;TI"
;TI"s1.send "a", 0, s2_ai
;TI";p s3.recvfrom(10) #=> ["a", ["AF_UNIX", "/tmp/sock1"]];T:@format0:
@fileI"ext/socket/unixsocket.c;T:0@omit_headings_from_table_of_contents_below0I"Lunixsocket.recvfrom(maxlen [, flags[, outbuf]]) => [mesg, unixaddress]
;T0[ I"(*args);T@&FI"UNIXSocket;TcRDoc::NormalClass00