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

Method init

Networking/Player.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace std;
17
18void Names::init(int player, int pnb, int my_port, const char* servername,
19 bool setup_socket)
20{
21 player_no=player;
22 portnum_base=pnb;
23 setup_names(servername, my_port);
24 if (setup_socket)
25 setup_server();
26}
27
28Names::Names(int player, int nplayers, const string& servername, int pnb,
29 int my_port) :

Callers 3

startMethod · 0.45
start_networkingMethod · 0.45
setup_serverMethod · 0.45

Calls 9

file_errorClass · 0.85
exit_errorFunction · 0.85
has_optionMethod · 0.80
sizeMethod · 0.45
failMethod · 0.45
strMethod · 0.45
clearMethod · 0.45
lengthMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected