Running a TCP server with an accepted socket.
Only the first address returned for mhost is used, so a server
created by this function listens on a single address family. Use
runTCPServerWithSocket with one socket per address to serve both
IPv4 and IPv6.