ruby-changes:23364
From: akr <ko1@a...>
Date: Fri, 20 Apr 2012 19:51:36 +0900 (JST)
Subject: [ruby-changes:23364] akr:r35415 (trunk): update doc.
akr 2012-04-20 19:51:25 +0900 (Fri, 20 Apr 2012) New Revision: 35415 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35415 Log: update doc. Modified files: trunk/ext/socket/raddrinfo.c Index: ext/socket/raddrinfo.c =================================================================== --- ext/socket/raddrinfo.c (revision 35414) +++ ext/socket/raddrinfo.c (revision 35415) @@ -1969,8 +1969,17 @@ * * Similarly, PF_INET6 as family restricts for IPv6. * - * flags should be bitwise OR of Socket::AI_??? constants. + * flags should be bitwise OR of Socket::AI_??? constants such as follows. + * Note that the exact list of the constants depends on OS. * + * AI_PASSIVE Get address to use with bind() + * AI_CANONNAME Fill in the canonical name + * AI_NUMERICHOST Prevent host name resolution + * AI_NUMERICSERV Prevent service name resolution + * AI_V4MAPPED Accept IPv4-mapped IPv6 addresses + * AI_ALL Allow all addresses + * AI_ADDRCONFIG Accept only if any address is assigned + * * Note that socktype should be specified whenever application knows the usage of the address. * Some platform causes an error when socktype is omitted and servname is specified as an integer * because some port numbers, 512 for example, are ambiguous without socktype. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/