MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / nw_ReccomendPPS

Function nw_ReccomendPPS

networking/networking.cpp:2279–2298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2277}
2278
2279int nw_ReccomendPPS() {
2280 static char szconnspeed[100];
2281 int len = 99;
2282 strcpy(szconnspeed, "");
2283 Database->read("ConnectionSpeed", szconnspeed, &len);
2284 if (stricmp(szconnspeed, "28K") == 0)
2285 return 5;
2286 else if (stricmp(szconnspeed, "33K") == 0)
2287 return 6;
2288 else if (stricmp(szconnspeed, "56K") == 0)
2289 return 7;
2290 else if (stricmp(szconnspeed, "ISDN") == 0)
2291 return 8;
2292 else if (stricmp(szconnspeed, "Cable") == 0)
2293 return 9;
2294 else if (stricmp(szconnspeed, "Fast") == 0)
2295 return 12;
2296 else
2297 return 7;
2298}
2299
2300// Register the networking library to call your function back
2301// When data containing your ID is found

Callers 2

MultiDoBytesSentFunction · 0.85
MultiSendMyInfoFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected