[前][次][番号順一覧][スレッド一覧]

ruby-changes:10901

From: akr <ko1@a...>
Date: Sat, 21 Feb 2009 23:05:15 +0900 (JST)
Subject: [ruby-changes:10901] Ruby:r22475 (trunk): rdoc update.

akr	2009-02-21 23:05:07 +0900 (Sat, 21 Feb 2009)

  New Revision: 22475

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22475

  Log:
    rdoc update.

  Modified files:
    trunk/ext/socket/ancdata.c

Index: ext/socket/ancdata.c
===================================================================
--- ext/socket/ancdata.c	(revision 22474)
+++ ext/socket/ancdata.c	(revision 22475)
@@ -1402,12 +1402,12 @@
  * In that case, the buffer will be grown until the message is not truncated.
  * Internally, MSG_PEEK is used and MSG_TRUNC/MSG_CTRUNC are checked.
  *
- * sendmsg can be used to implement recv_io as follows:
+ * recvmsg can be used to implement recv_io as follows:
  *
  *   mesg, sender_sockaddr, rflags, *controls = sock.recvmsg
  *   controls.each {|ancdata|
- *     if ancdata.level == Socket::SOL_SOCKET && ancdata.type == Socket::SCM_RIGHTS
- *       return IO.new(ancdata.int)
+ *     if ancdata.cmsg_is?(:SOCKET, :RIGHTS)
+ *       return ancdata.unix_rights[0]
  *     end
  *   }
  *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]