From 2092fbcc3ad4437f066dc79a64a80236afcbdf50 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 9 Feb 2009 12:52:11 +0000 Subject: [PATCH] rdoc update. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/option.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/socket/option.c b/ext/socket/option.c index a02bfcd1db..900b99a591 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -65,6 +65,7 @@ sockopt_new(int family, int level, int optname, VALUE data) * returns the socket family as an integer. * * p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).family + * #=> 10 */ static VALUE sockopt_family(VALUE self) @@ -79,6 +80,7 @@ sockopt_family(VALUE self) * returns the socket level as an integer. * * p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).level + * #=> 41 */ static VALUE sockopt_level(VALUE self) @@ -93,6 +95,7 @@ sockopt_level(VALUE self) * returns the socket option name as an integer. * * p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).optname + * #=> 2 */ static VALUE sockopt_optname(VALUE self) @@ -106,7 +109,8 @@ sockopt_optname(VALUE self) * * returns the socket option data as a string. * - * p Socket::Option.new(:INET6, :IPV6, :PKTINFO, [1].pack("i!")).data + * p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).data + * #=> "\x01\x00\x00\x00" */ static VALUE sockopt_data(VALUE self)