Added getopt to select mode #1; Added udpserver #2

This commit is contained in:
2017-12-15 12:03:53 +01:00
parent 1afa4504ab
commit c298de57a8
10 changed files with 208 additions and 54 deletions

View File

@@ -51,3 +51,12 @@ const char *lookupSounds(char input) {
return "";
}
int cfgreadudpport(void) {
int port;
if (!config_lookup_int(&cfg, "udpport", &port)) {
printf("FEHLER beim lesen von: udpport, Standardwert(8888) wird bereitgestellt.\n");
port = 8888;
}
return port;
}