View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-26-2012 , 11:23   Re: [TUT] Introduction to sockets
Reply With Quote #7

Quote:
Originally Posted by drekes View Post
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.
__________________
Bugsy is offline