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

ruby-changes:10728

From: akr <ko1@a...>
Date: Fri, 13 Feb 2009 23:43:18 +0900 (JST)
Subject: [ruby-changes:10728] Ruby:r22292 (trunk): rdoc update.

akr	2009-02-13 23:43:12 +0900 (Fri, 13 Feb 2009)

  New Revision: 22292

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

  Log:
    rdoc update.

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

Index: ext/socket/basicsocket.c
===================================================================
--- ext/socket/basicsocket.c	(revision 22291)
+++ ext/socket/basicsocket.c	(revision 22292)
@@ -370,7 +370,13 @@
  *
  *   Socket.unix_server_loop("/tmp/sock") {|s|
  *     begin
- *       p s.getpeereid #=> [1000, 1000]
+ *       euid, egid = s.getpeereid
+ *
+ *       # Check the connected client is myself or not.
+ *       next if euid != Process.uid
+ *
+ *       # do something about my resource.
+ *
  *     ensure
  *       s.close
  *     end
Index: ext/socket/ancdata.c
===================================================================
--- ext/socket/ancdata.c	(revision 22291)
+++ ext/socket/ancdata.c	(revision 22292)
@@ -993,7 +993,7 @@
 
 /*
  * call-seq:
- *    basicsocket.sendmsg(mesg, flags=0, dest_sockaddr=nil, *controls) => sent_len
+ *    basicsocket.sendmsg(mesg, flags=0, dest_sockaddr=nil, *controls) => numbytes_sent
  *
  * sendmsg sends a message using sendmsg(2) system call in blocking manner.
  *
@@ -1010,7 +1010,7 @@
  * 3-elements array.
  * The 3-element array should contains cmsg_level, cmsg_type and data.
  *
- * The return value, _sent_len_, is an integer which is the number of bytes sent.
+ * The return value, _numbytes_sent_sent is an integer which is the number of bytes sent.
  *
  * sendmsg can be used to implement send_io as follows:
  *
@@ -1031,7 +1031,7 @@
 
 /*
  * call-seq:
- *    basicsocket.sendmsg_nonblock(mesg, flags=0, dest_sockaddr=nil, *controls) => sent_len
+ *    basicsocket.sendmsg_nonblock(mesg, flags=0, dest_sockaddr=nil, *controls) => numbytes_sent
  *
  * sendmsg_nonblock sends a message using sendmsg(2) system call in non-blocking manner.
  *

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

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