MCPcopy Create free account
hub / github.com/defold/defold / GetSocketsFromConfig

Function GetSocketsFromConfig

engine/dlib/src/test/testutil.cpp:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{
19
20void GetSocketsFromConfig(dmConfigFile::HConfig config, int* socket, int* socket_tls, int* socket_tls_test)
21{
22 if( socket != 0 )
23 {
24 *socket = dmConfigFile::GetInt(config, "server.socket", -1);
25 }
26 if( socket_tls != 0 )
27 {
28 *socket_tls = dmConfigFile::GetInt(config, "server.socket_tls", -1);
29 }
30 if( socket_tls_test != 0 )
31 {
32 *socket_tls_test = dmConfigFile::GetInt(config, "server.socket_tls_test", -1);
33 }
34}
35
36
37} // namespace

Callers 8

mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 1

GetIntFunction · 0.50

Tested by

no test coverage detected