![]()
I made a chat server where multiple people can connect. They all connect on the same port but through an array (so there are no conflicts). As clients connect, their names are added to a listbox. Problem is when they disconnect. Sometimes my program doesn't delete their name from the list and thinks the client is still 'alive', when infact they are gone.
The refresh for winsock.state is 10 ms (meaning it loops through all the connections on the list and deletes bad connections every 10 ms). Unfortunately, this doesn't work all the time. Some say I should ping the clients, but that would interfere with the data being sent across that port. Does anyone have any other ideas?
![]()




Reply With Quote