|
|

Hey zee, would it be possible to get the basic version of a stable connection from you? I'm currently working on an isometric engine.. having trouble with how I will store data..
Do you think a hashmap would be okay? .. currently the connections list is held in a vector. The engine is being written for an audience for 1000 players at a time.
The server is in java, the client is in Actionscript 2.0

I think a vector would be better than a hashmap, due to the fact that you'd have to leave the hashmap with a size of 1,000 - which in turn wastes space whilst < 1,000 people are online. More to the point, don't you mean an arraylist? Same points still apply really to hashmap, arraylist and an array.
Vector power!
~Abyssal

Honestly speaking i have no idea why im even using vectors at the moment besides their ability change size. The problem with vectors tho is that its hard to send info to a specific user when you don't know which index their connection is stored. I think with hashmap I could use usernames as keys? I am no guru at networking, I am pretty decent at java, but not when it comes to java networking. I'm just using what I learned through experimenting and via online tutorials on various sites.
Plus I am not worried about memory now adays because a standard computer now aday has 1 gig memory.. and the server will be on my dedi only... im not making it for other's use so I can manage the memory server side.
| « Java Port Scanner! | Autoboxing » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |