summaryrefslogtreecommitdiff
path: root/ext/socket/ipsocket.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-15 23:20:44 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-15 23:20:44 +0000
commit82322e5d4b5943f2f1791133ed2dbcc06316638f (patch)
treeae435ccaba05f21c00d1f9887603147ff12cb038 /ext/socket/ipsocket.c
parent28d8d87812ff93d91d2881de389f8a20934f2d97 (diff)
* backport r32977 from trunk
* ext/socket: Make Socket documentation appear. Add documentation for Socket, TCPServer, SOCKSSocket. Patch by Sylvain Daubert. [Ruby 1.9 - Feature #5182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/ipsocket.c')
-rw-r--r--ext/socket/ipsocket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c
index 9d713d0afd..2217fffc9d 100644
--- a/ext/socket/ipsocket.c
+++ b/ext/socket/ipsocket.c
@@ -288,14 +288,14 @@ ip_s_getaddress(VALUE obj, VALUE host)
return rsock_make_ipaddr((struct sockaddr*)&addr);
}
-/*
- * Document-class: ::IPSocket < BasicSocket
- *
- * IPSocket is the super class of TCPSocket and UDPSocket.
- */
void
rsock_init_ipsocket(void)
{
+ /*
+ * Document-class: IPSocket < BasicSocket
+ *
+ * IPSocket is the super class of TCPSocket and UDPSocket.
+ */
rb_cIPSocket = rb_define_class("IPSocket", rb_cBasicSocket);
rb_define_method(rb_cIPSocket, "addr", ip_addr, -1);
rb_define_method(rb_cIPSocket, "peeraddr", ip_peeraddr, -1);