[SOLVED]Refuse the second client to connect the server

Here's an example of a TCP server that allows multiple connections. It's actually a tiny HTTP server, but it only serves a single file. The important part is that it shows how to handle multiple connections, which is kind of confusing.