Diagnostics.
Trying out auto_ptr.

May be in error somewhere here.
Add gai_strerror call.
Compiles.