Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

the-pi-guy

How does the server not notice the client disappearing during the compile?
The server and client are completely separate programs that just happen to connect to each other.  The only time the server knows about any of the clients is when they successfully make a connection, which only needs an IP address and a socket number.  

It feels weird.  You could make several different client programs connect to the server, even if each one is doing something completely different from the rest.  

You could end up connecting completely different clients, one that's trying to play the game and another that could be sending random messages.