From: Joel VanderWerf Date: 2005-08-11T03:28:13+09:00 Subject: Re: UDPSocket#bind with 0 or nil Daniel Brockman wrote: > Joel, > > >>Anyone happen know what the difference between bind(0) and >>bind(nil) is? > > > I assume you mean bind(0, foo) vs. bind(nil, foo). > The former binds to all interfaces, like bind("", foo). > The latter only binds to the loopback interface. ...snipped useful explanation... Thanks, that clears it up and explains what I was seeing. It's just confusing to me that the ruby nil value is used differently from the Fixnum 0 in the front-end to a system call. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407