Fixing method signature to match original socket.socket.