U:RDoc::AnyMethod[iI" recv:ETI"BasicSocket#recv;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Receives a message.;To:RDoc::Markup::BlankLineo; ; [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"H_outbuf_ will contain only the received data after the method call ;TI".even if it is not empty at the beginning.;T@o:RDoc::Markup::Verbatim; [ I"UNIXSocket.pair {|s1, s2| ;TI" s1.puts "Hello World" ;TI"3 p s2.recv(4) #=> "Hell" ;TI"3 p s2.recv(4, Socket::MSG_PEEK) #=> "o Wo" ;TI"3 p s2.recv(4) #=> "o Wo" ;TI"4 p s2.recv(10) #=> "rld\n" ;TI"};T: @format0: @fileI"ext/socket/basicsocket.c;T:0@omit_headings_from_table_of_contents_below0I"9basicsocket.recv(maxlen[, flags[, outbuf]]) => mesg ;T0[I" (*args);T@"FI"BasicSocket;TcRDoc::NormalClass00