| 41 | } |
| 42 | |
| 43 | OTMachine::OTMachine(int argc, const char** argv) |
| 44 | { |
| 45 | opt.add( |
| 46 | "", // Default. |
| 47 | 1, // Required? |
| 48 | 1, // Number of args expected. |
| 49 | 0, // Delimiter if expecting multiple args. |
| 50 | "This player's number, 0/1 (required).", // Help description. |
| 51 | "-p", // Flag token. |
| 52 | "--player" // Flag token. |
| 53 | ); |
| 54 | |
| 55 | opt.add( |
| 56 | "5000", // Default. |
| 57 | 0, // Required? |
| 58 | 1, // Number of args expected. |
| 59 | 0, // Delimiter if expecting multiple args. |
| 60 | "Base port number (default: 5000).", // Help description. |
| 61 | "-pn", // Flag token. |
| 62 | "--portnum" // Flag token. |
| 63 | ); |
| 64 | |
| 65 | opt.add( |
| 66 | "localhost", // Default. |
| 67 | 0, // Required? |
| 68 | 1, // Number of args expected. |
| 69 | 0, // Delimiter if expecting multiple args. |
| 70 | "Host name(s) that player 0 is running on (default: localhost). Split with commas.", // Help description. |
| 71 | "-h", // Flag token. |
| 72 | "--hostname" // Flag token. |
| 73 | ); |
| 74 | |
| 75 | opt.add( |
| 76 | "1024", |
| 77 | 0, |
| 78 | 1, |
| 79 | 0, |
| 80 | "Number of extended OTs to run (default: 1024).", |
| 81 | "-n", |
| 82 | "--nOTs" |
| 83 | ); |
| 84 | |
| 85 | opt.add( |
| 86 | "128", // Default. |
| 87 | 0, // Required? |
| 88 | 1, // Number of args expected. |
| 89 | 0, // Delimiter if expecting multiple args. |
| 90 | "Number of base OTs to run (default: 128).", // Help description. |
| 91 | "-b", // Flag token. |
| 92 | "--nbase" // Flag token. |
| 93 | ); |
| 94 | |
| 95 | opt.add( |
| 96 | "s", |
| 97 | 0, |
| 98 | 1, |
| 99 | 0, |
| 100 | "Mode for OT. a (asymmetric) or s (symmetric, i.e. play both sender/receiver) (default: s).", |
nothing calls this directly
no test coverage detected