I'm making a simple server-like program, but I only want it to accept
one connection at a time. All the other ones should give some exception
on the client side. The ways I've tried it will allow any number to
connect, but only one actually gets data (not too useful, since I can't
tell the other clients to do something else in the meantime)
Is there an easy way to do this?