Babulesnik
Member
|
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 |
|
Esenthel
Administrator
|
RE: removal from the list of players with no connection
use destructor of Client
|
|
11-09-2011 08:56 PM |
|
Babulesnik
Member
|
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 |
|
Babulesnik
Member
|
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 |
|
kulesz
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
Esenthel
Administrator
|
RE: removal from the list of players with no connection
|
|
11-15-2011 01:07 AM |
|