- {"servers", required_argument, NULL, OPT_SERVERS},
- {"threads", required_argument, NULL, OPT_THREAD_NUMBER},
- {"concurrency", required_argument, NULL, OPT_CONCURRENCY},
- {"conn_sock", required_argument, NULL, OPT_SOCK_PER_CONN},
- {"execute_number", required_argument, NULL, OPT_EXECUTE_NUMBER},
- {"time", required_argument, NULL, OPT_TIME},
- {"cfg_cmd", required_argument, NULL, OPT_CONFIG_CMD},
- {"win_size", required_argument, NULL, OPT_WINDOW_SIZE},
- {"fixed_size", required_argument, NULL, OPT_FIXED_LTH},
- {"verify", required_argument, NULL, OPT_VERIFY},
- {"division", required_argument, NULL, OPT_GETS_DIVISION},
- {"stat_freq", required_argument, NULL, OPT_STAT_FREQ},
- {"exp_verify", required_argument, NULL, OPT_EXPIRE},
- {"overwrite", required_argument, NULL, OPT_OVERWRITE},
- {"reconnect", no_argument, NULL, OPT_RECONNECT},
- {"udp", no_argument, NULL, OPT_UDP},
- {"facebook", no_argument, NULL, OPT_FACEBOOK_TEST},
- {"binary", no_argument, NULL, OPT_BINARY_PROTOCOL},
- {"tps", required_argument, NULL, OPT_TPS},
- {"rep_write", required_argument, NULL, OPT_REP_WRITE_SRV},
- {"verbose", no_argument, NULL, OPT_VERBOSE},
- {"help", no_argument, NULL, OPT_HELP},
- {"version", no_argument, NULL, OPT_VERSION},
- {0, 0, 0, 0},
+ { (OPTIONSTRING)"servers", required_argument, NULL,
+ OPT_SERVERS },
+ { (OPTIONSTRING)"threads", required_argument, NULL,
+ OPT_THREAD_NUMBER },
+ { (OPTIONSTRING)"concurrency", required_argument, NULL,
+ OPT_CONCURRENCY },
+ { (OPTIONSTRING)"conn_sock", required_argument, NULL,
+ OPT_SOCK_PER_CONN },
+ { (OPTIONSTRING)"execute_number", required_argument, NULL,
+ OPT_EXECUTE_NUMBER },
+ { (OPTIONSTRING)"time", required_argument, NULL,
+ OPT_TIME },
+ { (OPTIONSTRING)"cfg_cmd", required_argument, NULL,
+ OPT_CONFIG_CMD },
+ { (OPTIONSTRING)"win_size", required_argument, NULL,
+ OPT_WINDOW_SIZE },
+ { (OPTIONSTRING)"fixed_size", required_argument, NULL,
+ OPT_FIXED_LTH },
+ { (OPTIONSTRING)"verify", required_argument, NULL,
+ OPT_VERIFY },
+ { (OPTIONSTRING)"division", required_argument, NULL,
+ OPT_GETS_DIVISION },
+ { (OPTIONSTRING)"stat_freq", required_argument, NULL,
+ OPT_STAT_FREQ },
+ { (OPTIONSTRING)"exp_verify", required_argument, NULL,
+ OPT_EXPIRE },
+ { (OPTIONSTRING)"overwrite", required_argument, NULL,
+ OPT_OVERWRITE },
+ { (OPTIONSTRING)"reconnect", no_argument, NULL,
+ OPT_RECONNECT },
+ { (OPTIONSTRING)"udp", no_argument, NULL,
+ OPT_UDP },
+ { (OPTIONSTRING)"facebook", no_argument, NULL,
+ OPT_FACEBOOK_TEST },
+ { (OPTIONSTRING)"binary", no_argument, NULL,
+ OPT_BINARY_PROTOCOL },
+ { (OPTIONSTRING)"tps", required_argument, NULL,
+ OPT_TPS },
+ { (OPTIONSTRING)"rep_write", required_argument, NULL,
+ OPT_REP_WRITE_SRV },
+ { (OPTIONSTRING)"verbose", no_argument, NULL,
+ OPT_VERBOSE },
+ { (OPTIONSTRING)"help", no_argument, NULL,
+ OPT_HELP },
+ { (OPTIONSTRING)"version", no_argument, NULL,
+ OPT_VERSION },
+ { 0, 0, 0, 0 },