D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Socket
/
Filename :
gethostname-c.ri
back
Copy
U:RDoc::AnyMethod[iI"gethostname:ETI"Socket::gethostname;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"Returns the hostname.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"$p Socket.gethostname #=> "hal" ;T:@format0o; ; [I"oNote that it is not guaranteed to be able to convert to IP address using gethostbyname, getaddrinfo, etc. ;TI">If you need local IP address, use Socket.ip_address_list.;T: @fileI"ext/socket/socket.c;T:0@omit_headings_from_table_of_contents_below0I"$Socket.gethostname => hostname ;T0[ I"();T@FI"Socket;TcRDoc::NormalClass00