D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IPSocket
/
Filename :
recvfrom-i.ri
back
Copy
U:RDoc::AnyMethod[iI" recvfrom:ETI"IPSocket#recvfrom;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"?Receives a message and return the message as a string and ;TI",an address which the message come from.;To:RDoc::Markup::BlankLine o; ; [I"8_maxlen_ is the maximum number of bytes to receive.;T@o; ; [I"?_flags_ should be a bitwise OR of Socket::MSG_* constants.;T@o; ; [I"4ipaddr is the same as IPSocket#{peeraddr,addr}.;T@o:RDoc::Markup::Verbatim; [ I"u1 = UDPSocket.new ;TI" u1.bind("127.0.0.1", 4913) ;TI"u2 = UDPSocket.new ;TI"*u2.send "uuuu", 0, "127.0.0.1", 4913 ;TI"Qp u1.recvfrom(10) #=> ["uuuu", ["AF_INET", 33230, "localhost", "127.0.0.1"]];T:@format0: @fileI"ext/socket/ipsocket.c;T:0@omit_headings_from_table_of_contents_below0I"kipsocket.recvfrom(maxlen) => [mesg, ipaddr] ipsocket.recvfrom(maxlen, flags) => [mesg, ipaddr] ;T0[ I"(*args);T@ FI" IPSocket;TcRDoc::NormalClass00