DUNE Network: converted TCPSocket to new I/O framework.