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

ruby-changes:27502

From: akr <ko1@a...>
Date: Sun, 3 Mar 2013 00:04:01 +0900 (JST)
Subject: [ruby-changes:27502] akr:r39554 (trunk): update doc.

akr	2013-03-03 00:01:44 +0900 (Sun, 03 Mar 2013)

  New Revision: 39554

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

  Log:
    update doc.

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

Index: ext/socket/tcpserver.c
===================================================================
--- ext/socket/tcpserver.c	(revision 39553)
+++ ext/socket/tcpserver.c	(revision 39554)
@@ -22,6 +22,13 @@ https://github.com/ruby/ruby/blob/trunk/ext/socket/tcpserver.c#L22
  *   s = serv.accept
  *   s.puts Time.now
  *   s.close
+ *
+ * Internally, TCPServer.new calls getaddrinfo() function to
+ * obtain addresses.
+ * If getaddrinfo() returns multiple addresses,
+ * TCPServer.new try to create a server socket for each addresses
+ * and return first one succeed.
+ *
  */
 static VALUE
 tcp_svr_init(int argc, VALUE *argv, VALUE sock)

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

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