mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/ipsocket.c (IPSocket#peeraddr): Fix example
[ruby-core:46429] [Bug #6732] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed7d776317
commit
d2ddd30a3f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Nov 23 10:45:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* ext/socket/ipsocket.c (IPSocket#peeraddr): Fix example
|
||||
[ruby-core:46429] [Bug #6732]
|
||||
|
||||
Fri Nov 23 02:40:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* lib/cgi/core.rb: Documentation for CGI#header alias
|
||||
|
|
|
@ -214,7 +214,7 @@ ip_addr(int argc, VALUE *argv, VALUE sock)
|
|||
*
|
||||
* TCPSocket.open("www.ruby-lang.org", 80) {|sock|
|
||||
* p sock.peeraddr #=> ["AF_INET", 80, "carbon.ruby-lang.org", "221.186.184.68"]
|
||||
* p sock.peeraddr(true) #=> ["AF_INET", 80, "221.186.184.68", "221.186.184.68"]
|
||||
* p sock.peeraddr(true) #=> ["AF_INET", 80, "carbon.ruby-lang.org", "221.186.184.68"]
|
||||
* p sock.peeraddr(false) #=> ["AF_INET", 80, "221.186.184.68", "221.186.184.68"]
|
||||
* p sock.peeraddr(:hostname) #=> ["AF_INET", 80, "carbon.ruby-lang.org", "221.186.184.68"]
|
||||
* p sock.peeraddr(:numeric) #=> ["AF_INET", 80, "221.186.184.68", "221.186.184.68"]
|
||||
|
|
Loading…
Add table
Reference in a new issue