hello,
I am developing a server which has to accept only specified number of clients.
suppose if it is restricted for two clients it has refuse the connection for the third client.
For that i developed the code such that after two connections the server waits one client to disconnect(using wait(0) as each client is given child process).Now the problem is when the third client requests connection the server is going to wait now the client is also waiting there to get a connection with out disconnecting . How to solve this problem?