re: The spelling bug VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Recently programmed a simple server application in C which managed multiple connections using epoll. However, the program could not receive message...
 

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

code of conduct - report abuse