Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Net
/
Telnet
/
//opt/alt/ruby21/share/ri/2.1.0/system/Net/Telnet/waitfor-i.ri
U:RDoc::AnyMethod[iI"waitfor:EFI"Net::Telnet#waitfor;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ARead data from the host until a certain sequence is matched.;To:RDoc::Markup::BlankLine o; ; [I"BIf a block is given, the received data will be yielded as it ;TI"?is read in (not necessarily all in one go), or nil if EOF ;TI"Coccurs before any data is received. Whether a block is given ;TI"Ior not, all data read will be returned in a single string, or again ;TI"?nil if EOF occurs before any data is received. Note that ;TI"Ereceived data includes the matched sequence we were looking for.;T@o; ; [I"H+options+ can be either a regular expression or a hash of options. ;TI"CIf a regular expression, this specifies the data to wait for. ;TI"7If a hash, this can specify the following options:;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" Match;T; [o; ; [I";a regular expression, specifying the data to wait for.;To;;[I"Prompt;T; [o; ; [I"7as for Match; used only if Match is not specified.;To;;[I"String;T; [o; ; [I":as for Match, except a string that will be converted ;TI"8into a regular expression. Used only if Match and ;TI"Prompt are not specified.;To;;[I"Timeout;T; [o; ; [I":the number of seconds to wait for data from the host ;TI"8before raising a Timeout::Error. If set to false, ;TI"3no timeout will occur. If not specified, the ;TI"7Timeout option value specified when this instance ;TI"5was created will be used, or, failing that, the ;TI"!default value of 10 seconds.;To;;[I" Waittime;T; [o; ; [ I":the number of seconds to wait after matching against ;TI":the input data to see if more data arrives. If more ;TI"<data arrives within this time, we will judge ourselves ;TI"9not to have matched successfully, and will continue ;TI"=trying to match. If not specified, the Waittime option ;TI"<value specified when this instance was created will be ;TI"=used, or, failing that, the default value of 0 seconds, ;TI",which means not to wait for more input.;To;;[I"FailEOF;T; [o; ; [ I"@if true, when the remote end closes the connection then an ;TI"=EOFError will be raised. Otherwise, defaults to the old ;TI";behaviour that the function will return whatever data ;TI"?has been received already, or nil if nothing was received.;T: @fileI"lib/net/telnet.rb;T:0@omit_headings_from_table_of_contents_below00I" recvdata;F[ I"(options);T@YFI"Telnet;TcRDoc::NormalClass00