Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Socket
/
//opt/alt/ruby21/share/ri/2.1.0/system/Socket/udp_server_loop-c.ri
U:RDoc::AnyMethod[iI"udp_server_loop:EFI"Socket::udp_server_loop;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Ucreates a UDP/IP server on _port_ and calls the block for each message arrived. ;TI"EThe block is called with the message and its source information.;To:RDoc::Markup::BlankLine o; ; [I"<This method allocates sockets internally using _port_. ;TI"bIf _host_ is specified, it is used conjunction with _port_ to determine the server addresses.;T@o; ; [I"The _msg_ is a string.;T@o; ; [I"2The _msg_src_ is a Socket::UDPSource object. ;TI"It is used for reply.;T@o:RDoc::Markup::Verbatim; [ I"# UDP/IP echo server. ;TI"2Socket.udp_server_loop(9261) {|msg, msg_src| ;TI" msg_src.reply msg ;TI"};T:@format0: @fileI"ext/socket/lib/socket.rb;T:0@omit_headings_from_table_of_contents_below0I"qSocket.udp_server_loop(port) {|msg, msg_src| ... } Socket.udp_server_loop(host, port) {|msg, msg_src| ... } ;TI"message, message_source;F[ I"(host=nil, port);T@!FI"Socket;TcRDoc::NormalClass00