diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-15 23:08:39 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-15 23:08:39 +0000 |
commit | 12979424515344460afb12002ce07b670bf7cd6f (patch) | |
tree | 2d85f664a0fb708e459a30c56738487948ced8f9 /ext/socket/option.c | |
parent | 39e112f89a4e7471bb95ec516b05c75ac6df5aa9 (diff) |
* 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/trunk@32977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/option.c')
-rw-r--r-- | ext/socket/option.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index 49288a17eb..1f334bbca0 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -888,16 +888,17 @@ sockopt_unpack(VALUE self, VALUE template) return rb_funcall(sockopt_data(self), rb_intern("unpack"), 1, template); } -/* - * Document-class: ::Socket::Option - * - * Socket::Option represents a socket option used by getsockopt and setsockopt - * system call. - * It contains socket family, protocol level, option name and option value. - */ void rsock_init_sockopt(void) { + /* + * Document-class: Socket::Option + * + * Socket::Option represents a socket option used by + * BasicSocket#getsockopt and BasicSocket#setsockopt. A socket option + * contains the socket #family, protocol #level, option name #optname and + * option value #data. + */ rb_cSockOpt = rb_define_class_under(rb_cSocket, "Option", rb_cObject); rb_define_method(rb_cSockOpt, "initialize", sockopt_initialize, 4); rb_define_method(rb_cSockOpt, "family", sockopt_family_m, 0); |