MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / OTMachine

Method OTMachine

Machines/OTMachine.cpp:43–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43OTMachine::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).",

Callers

nothing calls this directly

Calls 15

INV_ROLEFunction · 0.85
timeval_diffFunction · 0.85
role_to_strFunction · 0.85
getIntMethod · 0.80
getStringMethod · 0.80
getLongMethod · 0.80
isSetMethod · 0.80
getUsageMethod · 0.80
compareMethod · 0.80
exec_baseMethod · 0.80
send_receive_playerMethod · 0.80
extend_lengthMethod · 0.80

Tested by

no test coverage detected