ruby-changes:10660
From: akr <ko1@a...>
Date: Wed, 11 Feb 2009 10:38:07 +0900 (JST)
Subject: [ruby-changes:10660] Ruby:r22221 (trunk): updated.
akr 2009-02-11 10:38:02 +0900 (Wed, 11 Feb 2009) New Revision: 22221 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22221 Log: updated. Modified files: trunk/NEWS Index: NEWS =================================================================== --- NEWS (revision 22220) +++ NEWS (revision 22221) @@ -91,7 +91,7 @@ * incompatible changes: * Socket#{recvfrom,recvfrom_nonblock,accept,accept_nonblock,sysaccept} returns a sender address as Addrinfo object instead of a binary sockaddr string. - * BasicSocket#getsockopt returns Socket::Option object instead of a string. + * BasicSocket#getsockopt returns Socket::Option object instead of a binary string. * new class: * Addrinfo @@ -124,9 +124,15 @@ Socket#{connect,connect_nonblock} accepts an Addrinfo object as sockaddr. * BasicSocket#getsockopt accepts a Socket::Option object. - * string/symbol as protocol/address family, socket type, protocol level, - socket option name and shutdown's how argument can be specified as a - string/symbol. + * constant names can be accepted as well as constant values. + i.e. Socket.new(:PF_INET, :SOCK_STREAM, 0) + The constant names can be specified without the prefix. + i.e. Socket.new(:INET, :STREAM, 0) + * protocol/address family + * socket type + * socket option protocol level + * socket option name + * shutdown's argument * pathname * new methods: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/