Original Post
Hello,
I'm writing a threaded server in c++ and using an Object called DataStore to hold all important variables that will be used through out the threads. This works out great with a> because the amount of Object inside DataStore will be very small.
My main question comes from the Sessions that each player will have when connecting to the server so I can keep track of all their online states and sub information. I was thinking of using a
-Ty
-Frank N.-
I'm writing a threaded server in c++ and using an Object called DataStore to hold all important variables that will be used through out the threads. This works out great with a
map but I might move over to a vectorMy main question comes from the Sessions that each player will have when connecting to the server so I can keep track of all their online states and sub information. I was thinking of using a
map but! I know insertion into a map is pretty slow and map's so should I worry at this point? Or is there anyway to index the Sessions so I can access their information like a map based on port because I'm using UDP as my protocol. Or is it best just to do a list and go through them all which sounds pretty bad but not exactly sure at this point.-Ty
-Frank N.-