From: Austin Ziegler Date: 2006-05-17T22:07:35+09:00 Subject: Re: Nonblocking socket-connect On 5/17/06, Francis Cianfrocca wrote: > My opinion only, but when I see bang at the end of a method name, it makes > me think that it will result in some possibly dangerous change to the object > itself, rather than urgency. > > Earlier I proposed Socket#nbconnect and TCPServer#nbaccept and > Socket#nbrecvfrom (I think these are ones that are most needed, the rest can > be done with sysread and syswrite. Not sure yet about datagram sends.) This > proposal has the advantage that it makes sense in English (read "nbaccept" > as "nonblocking accept") but the potential disadvantage that the methods > will bunch up together in alphabetical lists. Another possibility would be > to add "nb" as a suffix: acceptnb, connectnb, etc. #accept_nonblock, #connect_nonblock, and #recvfrom_nonblock would be good choices in my opinion. They're clear that they're for nonblocking behaviour. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca