Hi kicken, thank you very much for your response.
I am not sure, but I think I need concurrent server because each client connection needs an unique communication.
This would be my code:
$client_sock = socket_accept($socket); $pid_child = pcntl_fork(); if($pid_child ==0) { while(true) { $input = socket_read($client_sock, 100); if($input) handle_message($input); else break; } socket_close($client_sock); //send a message to the rest of clients, telling them that this client went offline } [code] I am developing an online game, where several users can invite other users to play. Besides, each user can send a private message to another user, something like a chat. Another thing I need, is to implement a shared list of users, using some IPC technique, but I do not know what to use... Thank you again!