simple socket server in conversation with netcat as client and with result goint into logging file