turican0 / remc2

Recode Binary code of game Magic Carpet2 to C/C++ language(remake MC2 for any platform)
GNU General Public License v3.0
111 stars 11 forks source link

Network - receive only from correct client #153

Open turican0 opened 2 years ago

thobbsinteractive commented 2 years ago

I guess the server can use UDP and the clients IP?

turican0 commented 2 years ago

I need to rework the current code a bit. So far, I have referred to the receiver interface for the last command. But that doesn't work in some cases, because multiple interfaces can be active at the same time, so I have to redo it to list the interfaces, otherwise it wouldn't work for more than one client, and it doesn't work to disconnect and reconnect a client.