M
Mariano
Then, I have one client and one server connected trough TCP socket.
When server is listening, client can establish new connection to it.
Every time that new client try to start the connection, the server
use pthread_create() to start a new detached thread for every client.
In this way I can have one server listening and one or more clients
connected. If a client send a particular input, server must disconnect
all clients, close itself and return to prompt.
How can I do that?
With actual scenario only client that have sended that particular
input is disconnected and closed correctly, All other clients that was
connected first are "pending".
When server is listening, client can establish new connection to it.
Every time that new client try to start the connection, the server
use pthread_create() to start a new detached thread for every client.
In this way I can have one server listening and one or more clients
connected. If a client send a particular input, server must disconnect
all clients, close itself and return to prompt.
How can I do that?
With actual scenario only client that have sended that particular
input is disconnected and closed correctly, All other clients that was
connected first are "pending".