Fixed docs for Socket::$ipAddress
Vastly improved socket error handling
Make use of new error handling while detecting ECONNRESET

This patch will break this functionality when used without the
sockets extension, but this will probably be removed altogether from
version 2.0.0.