scoped ptr wrapping c_sock here