This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: RE : I lose sockets
Ah, now i see your problem.
You have the basic TCP server structure wrong. You should create one
listen'ing socket and then keep it for ever, repeatadly doing accept()
on it as each client connects. ie you don't need a listening socket
per connection.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss