This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: server_test.c and SO_REUSE*
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] server_test.c and SO_REUSE*
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 02 Aug 2001 21:29:27 +0100
- Cc: 'eCos Discussion' <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <000001c11b68$23321cc0$090110ac@TRENT>
"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