summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-09 12:52:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-09 12:52:11 +0000
commit2092fbcc3ad4437f066dc79a64a80236afcbdf50 (patch)
tree075f2f08785a81bb155557f4971344e9d28eddbd /ext
parentecfea8e28e0042cea1f242393714eff7c16b8e60 (diff)
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/option.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index a02bfcd..900b99a 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)