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

Function GetSocketsFromConfig

engine/dlib/src/dlib/testutil_config.cpp:21–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

GetIntFunction · 0.70

Tested by

no test coverage detected