Moved the I/O logic to new stream objects.
IPV6 support.