Re: linux, sockets, c



On 2006-01-28, lsg <lsg25@xxxxxxxxx> wrote:

> It takes ~20s. There are n devices (~50). I need to do every 5 min.
> The ideal solutions is to read all devices at the same time. How to
> impement that?

Threads or select/poll or fork. All would work fine.
Select/poll is probably the simplest unless the
decoding/processing takes a long time, then threads might be
easier.

> Maybe it could be done like port scanner?

Maybe, I have no idea what "like port scanner" means.


--
Grant Edwards grante Yow! Oh, I get it!! "The
at BEACH goes on," huh,
visi.com SONNY??
.