| 2279 | |
| 2280 | |
| 2281 | void menu() { |
| 2282 | printf("\nUsage:\n"); |
| 2283 | printf("-h show this help\n"); |
| 2284 | printf("-k value Use this only with bsgs mode, k value is factor for M, more speed but more RAM use wisely\n"); |
| 2285 | printf("-n number Check for N sequential numbers before the random chosen, this only works with -R option\n"); |
| 2286 | printf("-t tn Threads number, must be a positive integer\n"); |
| 2287 | printf("-p port TCP port Number for listening conections"); |
| 2288 | printf("-i ip IP Address for listening conections"); |
| 2289 | printf("\nExample:\n\n"); |
| 2290 | printf("./bsgs -k 512 \n\n"); |
| 2291 | exit(EXIT_FAILURE); |
| 2292 | } |
| 2293 | |
| 2294 | |
| 2295 | void checkpointer(void *ptr,const char *file,const char *function,const char *name,int line) { |