DEV Community

Discussion on: The spelling bug

Collapse
 
foxtacles profile image
Christian Semmler

new_connection always becomes true or false, and the value you actually expect to be stored gets lost. You probably meant this:

while ((new_connection = accept(fd, &new_addr, &len)) != -1)

Nasty one :D