I'm trying to create a server for a game i've been programming for a while, the problem is what is the most efficient way to parse the data and answer correctly?
I mean a smiple if else is good enough if you dont have more than 20 commands, but imagine a protocol with more than 100? scanning through 100 if else is probably slowing the sever down^^
any good ideas?
Creatures