| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 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/Socket/ |
Upload File : |
U:RDoc::AnyMethod[iI"udp_server_recv:EFI"Socket::udp_server_recv;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"6Receive UDP/IP packets from the given _sockets_. ;TI"3For each packet received, the block is called.;To:RDoc::Markup::BlankLine o;
; [I"-The block receives _msg_ and _msg_src_. ;TI"D_msg_ is a string which is the payload of the received packet. ;TI"E_msg_src_ is a Socket::UDPSource object which is used for reply.;T@o;
; [I"LSocket.udp_server_loop can be implemented using this method as follows.;T@o:RDoc::Markup::Verbatim; [I"/udp_server_sockets(host, port) {|sockets|
;TI" loop {
;TI"- readable, _, _ = IO.select(sockets)
;TI"9 udp_server_recv(readable) {|msg, msg_src| ... }
;TI" }
;TI"};T:@format0:
@fileI"ext/socket/lib/socket.rb;T:0@omit_headings_from_table_of_contents_below0I";Socket.udp_server_recv(sockets) {|msg, msg_src| ... }
;TI"Omsg, udp_source{|reply_msg| sendmsg reply_msg, 0, sender_addrinfo, pktinfo;T[ I"(sockets);T@ FI"Socket;TcRDoc::NormalClass00