aboutsummaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-22 00:48:51 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-22 00:48:51 +0000
commit062780c83434a54e2c0d79a0530168e3a045f872 (patch)
treed2bad215b27cd54c2eae109917e971bc9be8094b /ext/socket/socket.c
parent0647517bda96e267eca7153ec33aa598015522f3 (diff)
downloadruby-062780c83434a54e2c0d79a0530168e3a045f872.tar.gz
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 819c451347..b9192285c2 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1784,10 +1784,11 @@ socket_s_ip_address_list(VALUE self)
*
* Class +Socket+ provides access to the underlying operating system
* socket implementations. It can be used to provide more operating system
- * specific functionality than the protocol-specific socket classes but at the
- * expense of greater complexity. In particular, the class handles addresses
- * using +struct+ sockaddr structures packed into Ruby strings, which can be
- * a joy to manipulate.
+ * specific functionality than the protocol-specific socket classes.
+ *
+ * The constants defined under Socket::Constants are also defined under Socket.
+ * For example, Socket::AF_INET is usable as well as Socket::Constants::AF_INET.
+ * See Socket::Constants for the list of constants.
*
* === Exception Handling
* Ruby's implementation of +Socket+ causes an exception to be raised