# Received a connect to the server (listening) socket. <br>
if sock == @server_socket<br>
#sock - TCPServer.accept socket<br>
accept_new_connection<br>
<br>
else<br>
<br>
# Received something on a client socket<br>
if sock.eof?<br>
<br>
sock.close<br>
@descriptors.delete(sock)<br>
<br>
end<br>
end