I had a strange thought at that time didn't work actually decided to use a struct to store some extra data instead and was considering using the code to go off tells which still would need to lookup off a list of strings for what connection to send out on. Command strings will be something like move to x,y coordinate so it would parse similar to MOV_X_Y and the commands will be parsed as strings. Planning on using strtok to split it up so we will have commands like MOV, CHT, LOGIN, EQUIP, CRAFT, USE, ATTACK, etc. I can say login can be low priority and things like that, but if I get a sufficently large pool of valid commands I need a way so a thread doesn't take a long time to execute the command.