Simple socket server and listener