Re: [tuxdroid-user] Tuxdroid ans slug (NSLU2)
Status: Beta
Brought to you by:
ks156
From: Damien <ror...@gm...> - 2007-04-25 06:15:59
|
Le mardi 24 avril 2007, "David Bourgeois" <da...@ja...> a =C3=A9crit : [...] > I guess we need the following structure in any case: > USB <-> status structure and command stack <-> TCP/IP >=20 > I don't have any experience with threads and TCP/IP but can't we do =20 > without threads at all? Isn't select() supposed to call a function > when data is available? Yes, it is generally possible to do without threads and use instead select() along with a (more or less implicit) state machine. Haven't looked how well/easily this could be done with the current daemon, though. > Now we could also use pipes to communicate with a separate USB > process as the data can be kept as raw there. We should avoid having several processes on setups where it is not necessary. Damien |