From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: "Trenton D. Adams" Cc: 'eCos Discussion' Subject: Re: [ECOS] server_test.c and SO_REUSE* Date: Thu, 02 Aug 2001 13:29:00 -0000 Message-id: <3B69B827.C1816621@redhat.com> References: <000001c11b68$23321cc0$090110ac@TRENT> X-SW-Source: 2001-08/msg00078.html "Trenton D. Adams" wrote: > > I found something in server_test.c that I think is wrong. It doesn't > affect the functionality of the actual test. [snip] > If the two socket options aren't set before the bind, they have no > affect, and you cannot reuse the port or address if you want to. > > Since the listening socket is never closed, it doesn't affect the actual > test. > > Is this correct? My program wouldn't work without the setsockopt () > calls before bind. Yes, that's right, I'll "fix" the test. Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine