Post TCPServer example code that works with the current implementation