D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Net
/
HTTP
/
Filename :
ipaddr-i.ri
back
Copy
U:RDoc::AnyMethod[iI"ipaddr:ETI"Net::HTTP#ipaddr;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"/Returns the IP address for the connection.;To:RDoc::Markup::BlankLine o; ; [I"*If the session has not been started, ;TI"(returns the value set by #ipaddr=, ;TI"%or +nil+ if it has not been set:;T@o:RDoc::Markup::Verbatim; [ I"$http = Net::HTTP.new(hostname) ;TI"http.ipaddr # => nil ;TI"#http.ipaddr = '172.67.155.76' ;TI"&http.ipaddr # => "172.67.155.76" ;T:@format0o; ; [I"&If the session has been started, ;TI",returns the IP address from the socket:;T@o;; [ I"$http = Net::HTTP.new(hostname) ;TI"http.start ;TI"&http.ipaddr # => "172.67.155.76" ;TI"http.finish;T; 0: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@$FI" HTTP;TcRDoc::NormalClass00