On Thu, Mar 04, 2010 at 08:14:17PM +0200, Dmitry Maluka wrote: > Maybe I miss something, but why not just output results as far as hosts > are scanned? Output isn't that slow to use threads.
The main idea was abstraction: scanning function just pass scanned host to next stage instead of calling output function. It may be good idea to use plan9port, I have just compiled portscan with 9c/9l and it works. What about using libthread instead of pthreads? It depends on pthreads, right?