Sockets secure implementations

Rebased on `master`.
Why not remove the interest here as well (in the opposite case)? Add a comment if there's a reason.