in reply to Socket client thread design problem
I think your problem is that you don't differentiate a new connection, from an existing connection. The code shows how it's done, and those scripts are pretty close to the way C would do it.
You do the initial accept with the main thread, then let the threads handle the connection.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Socket client thread design problem
by photron (Novice) on Mar 21, 2014 at 10:34 UTC | |
by zentara (Cardinal) on Mar 21, 2014 at 22:01 UTC | |
by photron (Novice) on Mar 24, 2014 at 15:24 UTC |