Heh,yeah, sexy innit.

Of course you can't deal with binary characters, but simple email, syslog recording etc will be fine.

I used RC3 for testing, and I develop on our lowest common denominator - my Win95 machine.

I dunno why kbhit() would hang - most peculiar.

You don't need that small loop - it is just there to provide a clean shutdown, and to allow you to close the client without stopping the server. Try commenting it out.

PS: Updated version with simple password control uploaded.