summaryrefslogtreecommitdiff
path: root/ext/socket/tcpserver.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-02 15:01:44 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-02 15:01:44 +0000
commitfa0630558f181ef744e933abb857f06f32cc3ad0 (patch)
treec67bb028e0c608ef3b39aae41e0123360a0f2065 /ext/socket/tcpserver.c
parentd613f283be274e8e50a0d62fab51c52dae8a6228 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/tcpserver.c')
-rw-r--r--ext/socket/tcpserver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/socket/tcpserver.c b/ext/socket/tcpserver.c
index 317470a..4c011ac 100644
--- a/ext/socket/tcpserver.c
+++ b/ext/socket/tcpserver.c
@@ -22,6 +22,13 @@
* 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)