Quote:
Originally Posted by drekes
I'm working on a plugin that sends a player's steamid to a server & then receives answer to check if he's banned or not & there are a few things that aren't clear to me.
1. Is it okay to use a seperate socket for every player ?
2. If not, can i send new data to a socket after i received data from an earlier request or do i need to close & reopen it every time ?
3. Is it okay to connect to multiple servers at the same time ?
|
1. Yes, but it will use more resources.
2. You can keep the connection open if you use TCP protocol. You may want to use UDP which is a connectionless protocol.
3. Yes.
__________________