FlameDuck #1 If you don't have multitasking, how do you write a working server? If you're using a proper OS, use Inetd. Which would probably be the prefered solution in this case aswell, so you don't have to do all the socket handling but can just use stdio.