Sanitized socket implementations