From 9b761ac8a27cc6ac97cb1e65a43238c4c144e8e9 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 17 Jan 2009 15:40:30 +0000 Subject: rdoc update. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/raddrinfo.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/socket/raddrinfo.c') diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index 845bbe7f8..f3ed2ca4a 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -1404,6 +1404,10 @@ addrinfo_unix_path(VALUE self) * * flags should be bitwise OR of Socket::AI_??? constants. * + * Note that socktype should be specified whenever application knows the usage of the address. + * Some platform causes an error when socktype is ommitted and servname is specified as an integer + * because some port numbers, 512 for example, are ambiguous without socktype. + * * AddrInfo.getaddrinfo("www.kame.net", 80, nil, :STREAM) * #=> [#, * # #] -- cgit