HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/system/Socket/udp_server_loop-c.ri
U:RDoc::AnyMethod[iI"udp_server_loop:ETI"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::BlankLineo;
;	[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