James Gray
11/25/2004 3:00:00 AM
On Nov 24, 2004, at 8:42 PM, James Edward Gray II wrote:
> Okay, I'm learning with a little "Trial by Fire" over here. I'm
> building a threaded server. I'm using Socket#gets for reading and
> that's going fine. I've learned that it returns nil, when the
> connection is closed. Does it throw exceptions under any conditions
> and if so, which ones?
Solving a little of my own puzzle here, Socket#gets and Socket#close
both throw IOError, if the Sockect is already closed.
James Edward Gray II