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

Method get_socket

Processor/ExternalClients.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112client_socket* ExternalClients::get_socket(int id)
113{
114 ScopeLock _(lock);
115 if (external_client_sockets.find(id) == external_client_sockets.end())
116 throw runtime_error("external connection not found for id " + to_string(id));
117 return external_client_sockets[id];
118}

Callers 5

write_socketMethod · 0.45
read_socket_intsMethod · 0.45
read_socket_vectorMethod · 0.45
read_socket_privateMethod · 0.45
executeMethod · 0.45

Calls 3

runtime_errorFunction · 0.85
to_stringFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected