About Store Forum Documentation Contact



Post Reply 
removal from the list of players with no connection
Author Message
Babulesnik Offline
Member

Post: #1
removal from the list of players with no connection
in a ConnectionServer have Map<SockAddr,Client> clients; where clients are added and removed automatically, but for my game I keep all the clients in a different container
Code:
Memx<StructPlayer>MemPlayersList;
I need to remove clients in my container at the same time when they are removed in Map<SockAddr,Client> clients; How to do it ?
11-07-2011 04:24 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: removal from the list of players with no connection
use destructor of Client
11-09-2011 08:56 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #3
RE: removal from the list of players with no connection
(11-09-2011 08:56 PM)Esenthel Wrote:  use destructor of Client
Thank you but you can sample?
11-09-2011 09:27 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #4
RE: removal from the list of players with no connection
(11-09-2011 08:56 PM)Esenthel Wrote:  use destructor of Client
You can sample code to do this ?
11-10-2011 06:51 PM
Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #5
RE: removal from the list of players with no connection
Do destructor handle ALL scenarios (disconnection of client due to internet failure etc.)?
11-10-2011 07:44 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #6
RE: removal from the list of players with no connection
Quote:Do destructor handle ALL scenarios (disconnection of client due to internet failure etc.)?
Yes
11-11-2011 12:41 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #7
RE: removal from the list of players with no connection
http://esenthel.com/community/showthread.php?tid=3331
I recommend finding a programmer for your team
11-15-2011 01:07 AM
Find all posts by this user Quote this message in a reply
Post Reply