in reply to threadpools and tcp connections
So... you can have your main thread do the accept on the connections, and hand them off to a set of threads, by passing the fileno to it. See where the thread itself can remove itself from a select list at the comment #remove multi-echo-clients from echo list.
But yes, it all basically works good together, threads and tcp.
|
|---|