summaryrefslogtreecommitdiff
path: root/ext/socket/basicsocket.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-22 03:33:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-22 03:33:14 +0000
commit1561d3fb8b2eb8bfeaabd1d05ff0870b285feb4e (patch)
tree4e43d3d7cf65be3bfac6de15198195891f647e25 /ext/socket/basicsocket.c
parent1a40be09d635c4b35008877c3fdf10c963e08641 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/basicsocket.c')
-rw-r--r--ext/socket/basicsocket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c
index 440eb76..5e28bcf 100644
--- a/ext/socket/basicsocket.c
+++ b/ext/socket/basicsocket.c
@@ -348,6 +348,8 @@ bsock_getsockopt(VALUE sock, VALUE lev, VALUE optname)
* TCPServer.open("127.0.0.1", 15120) {|serv|
* p serv.getsockname #=> "\x02\x00;\x10\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
* }
+ *
+ * If Addrinfo object is preferred, use BasicSocket#local_address.
*/
static VALUE
bsock_getsockname(VALUE sock)
@@ -374,6 +376,8 @@ bsock_getsockname(VALUE sock)
* p s.getpeername #=> "\x02\x00\x82u\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
* }
*
+ * If Addrinfo object is preferred, use BasicSocket#remote_address.
+ *
*/
static VALUE
bsock_getpeername(VALUE sock)