So it seems that you only have IPv6 addresses for localhost when you are not connected to a network. I have no idea why that is... maybe you can check the network settings in Gnome to see if there is anything that looks like it could cause this behavior. Or see if you can just disable IPv6 entirely if you aren't using it. - Eric On Mon, May 10, 2010 at 7:34 PM, Alexis Cheng wrote: > Hi Eric, > > > > Sorry about that, my mistake. This output was not the same as yours. > > > > AF_INET family integer is: 2 > > AF_INET6 family integer is: 10 > > family for result was 10 > > hostname: localhost > > family for result was 10 > > hostname: localhost > > family for result was 10 > > hostname: localhost > > > > Thanks! > > > > Alexis Cheng > > Electrical Engineering > > University of British Columbia > > > > Hi Eric, > > > > I am running Ubuntu 9.10 and I believe I am using the newest version of > boxturtle. > > > > The output from the attached code is the same as yours. > > > > Thanks! > > > > Alexis Cheng > > Electrical Engineering > > University of British Columbia > > > Whoops.. forgot to attach the code (modified example from > http://en.wikipedia.org/wiki/Getaddrinfo). Also, this produces: > > AF_INET family integer is: 2 > AF_INET6 family integer is: 10 > family for result was 2 > hostname: localhost > family for result was 2 > hostname: localhost > family for result was 2 > hostname: localhost > family for result was 2 > hostname: localhost > family for result was 2 > hostname: localhost > family for result was 2 > hostname: localhost > on my Ubuntu 9.10 machine. > > - Eric > > ________________________________ > 30 days of prizes: Hotmail makes your day easier! Enter now > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > >