| 2277 | } |
| 2278 | |
| 2279 | int 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 |
no test coverage detected