From 652484598d802cd808b4b1fe4bef263b53e3119c Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 22 Mar 2010 09:45:57 +0000 Subject: update doc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/option.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ext/socket/option.c') diff --git a/ext/socket/option.c b/ext/socket/option.c index 89265b78ad..4be651f7c6 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -148,7 +148,7 @@ sockopt_data(VALUE self) * * Creates a new Socket::Option object which contains an int as data. * - * The size and endian is dependent on the host. + * The size and endian is dependent on the platform. * * p Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1) * #=> # @@ -169,7 +169,7 @@ sockopt_s_int(VALUE klass, VALUE vfamily, VALUE vlevel, VALUE voptname, VALUE vi * * Returns the data in _sockopt_ as an int. * - * The size and endian is dependent on the host. + * The size and endian is dependent on the platform. * * sockopt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1) * p sockopt.int => 1 @@ -660,6 +660,10 @@ sockopt_unpack(VALUE self, VALUE 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 Init_sockopt(void) -- cgit v1.2.3