📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 13:55:09
📂
/ (Root)
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
Socket
📍 /opt/alt/ruby31/share/ri/system/Socket
🔄 Refresh
✏️
Editing: udp_server_loop-c.ri
Read Only
U:RDoc::AnyMethod[iI"udp_server_loop:ETI"Socket::udp_server_loop;TT:privateo: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;T[ I"(host=nil, port);T@!FI"Socket;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel