Exit if invalid parameter is passed
Minor rename in net
Remember to set the client sockets to O_NONBLOCK