Simple TCP server as per Smashing Node