Moved listend out of the loop -- we only need to do it once, it's accept that blocks for incoming connections.