U:RDoc::AnyMethod[iI" send:ETI"UDPSocket#send;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I""Sends _mesg_ via _udpsocket_.;To:RDoc::Markup::BlankLineo; ; [I"?_flags_ should be a bitwise OR of Socket::MSG_* constants.;T@o:RDoc::Markup::Verbatim; [I"u1 = UDPSocket.new ;TI" u1.bind("127.0.0.1", 4913) ;TI" ;TI"u2 = UDPSocket.new ;TI"(u2.send "hi", 0, "127.0.0.1", 4913 ;TI" ;TI""mesg, addr = u1.recvfrom(10) ;TI"'u1.send mesg, 0, addr[3], addr[1] ;TI" ;TI"p u2.recv(100) #=> "hi";T: @format0: @fileI"ext/socket/udpsocket.c;T:0@omit_headings_from_table_of_contents_below0I"®udpsocket.send(mesg, flags, host, port) => numbytes_sent udpsocket.send(mesg, flags, sockaddr_to) => numbytes_sent udpsocket.send(mesg, flags) => numbytes_sent ;T0[I"(p1, p2, p3, p4);T@FI"UDPSocket;TcRDoc::NormalClass00