Socket types shouldn't take ownership of IpAddress values
Methods such as TcpClient.new
and TcpServer.new
take ownership of the IpAddress
passed to construct the socket. This isn't necessary and makes it more difficult to use these types. Instead the types/methods in question should take a ref IpAddress
.