Correct access to raw socket for TLS