This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: server_test.c and SO_REUSE*


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]