NUM_COMMANDS
if (index >= NUM_COMMANDS || index < 0) {
memset(commands,0,NUM_COMMANDS * sizeof(net_command));
connection->numCommands = NUM_COMMANDS;