Asynchronous BSD socket with select