Safa wrote:
Hi Everyone,

I am running a multiplayer game server based on MINA, where 8k users can be
online at certain times of a day. For the latest update I have been doing to
my server, I needed to determine if multiple accounts log in from the same
IP address. For this, I used IoSession.getRemoteAddress() and downcast to
InetAddress, then store the result of getHostName() in a string.
Why don't you just store the address in a 'int' ? If it's a Inet4 address, it should be just what you need to keep an address in memory, and you certainly can hold hundred of thousands of those guys in memory...

The only problem is when you have more than one port used for a IP address...

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to