Adds Socket::survey method.

Proposal implemented.