Interface TCPSocket rewritten to be based on the Streams API. (UDP and TCPServer interfaces still not rewritten).