Use the socket portability layer when needed.