查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: login-i.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/Net/Telnet/login-i.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !ruby/object:RI::MethodDescription aliases: [] block_params: recvdata comment: - !ruby/struct:SM::Flow::P body: Login to the host with a given username and password. - !ruby/struct:SM::Flow::P body: The username and password can either be provided as two string arguments in that order, or as a hash with keys "Name" and "Password". - !ruby/struct:SM::Flow::P body: This method looks for the strings "login" and "Password" from the host to determine when to send the username and password. If the login sequence does not follow this pattern (for instance, you are connecting to a service other than telnet), you will need to handle login yourself. - !ruby/struct:SM::Flow::P body: The password can be omitted, either by only provided one String argument, which will be used as the username, or by providing a has that has no "Password" key. In this case, the method will not look for the "Password:" prompt; if it is sent, it will have to be dealt with by later calls. - !ruby/struct:SM::Flow::P body: The method returns all data received during the login process from the host, including the echoed username but not the password (which the host should not echo). If a block is passed in, this received data is also yielded to the block as it is received. full_name: Net::Telnet#login is_singleton: false name: login params: (options, password = nil) {|recvdata| ...} visibility: public
💾 保存文件
← 返回文件管理器