| 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_sockets:EFI"Socket::udp_server_sockets;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Creates UDP/IP sockets for a UDP server.;To:RDoc::Markup::BlankLine o;
; [I"7If no block given, it returns an array of sockets.;T@o;
; [I"@If a block is given, the block is called with the sockets. ;TI")The value of the block is returned. ;TI"5The sockets are closed when this method returns.;T@o;
; [I"-If _port_ is zero, some port is chosen. ;TI"5But the chosen port is used for the all sockets.;T@o:RDoc::Markup::Verbatim; [I"# UDP/IP echo server
;TI"-Socket.udp_server_sockets(0) {|sockets|
;TI"; p sockets.first.local_address.ip_port #=> 32963
;TI": Socket.udp_server_loop_on(sockets) {|msg, msg_src|
;TI" msg_src.reply msg
;TI" }
;TI"};T:@format0:
@fileI"ext/socket/lib/socket.rb;T:0@omit_headings_from_table_of_contents_below0I".Socket.udp_server_sockets([host, ] port)
;TI"sockets;T[ I"(host=nil, port);T@$FI"Socket;TcRDoc::NormalClass00