Revision 399
colonet wireless now setting com port and checking for wlinit errors
options.c | ||
---|---|---|
45 | 45 |
memset(&optionsG, 0, sizeof(ColonetServerOptionsT)); |
46 | 46 |
|
47 | 47 |
if (argc < 2) { |
48 |
printf("No port was specified for listening for client connections." |
|
49 |
" Defaulting to %d\n", DEFAULTPORT); |
|
48 |
printf("No port was specified for listening for client connections. Defaulting to %d\n", DEFAULTPORT); |
|
50 | 49 |
} |
51 | 50 |
|
52 | 51 |
/* Defaults */ |
... | ... | |
69 | 68 |
optionsG.listen_port = atoi(optarg); |
70 | 69 |
|
71 | 70 |
if (optionsG.listen_port < SMALLEST_POSS_LISTEN_PORT) { |
72 |
printf("You cannot listen on a port less than %d.\n", |
|
73 |
SMALLEST_POSS_LISTEN_PORT); |
|
71 |
printf("You cannot listen on a port less than %d.\n", SMALLEST_POSS_LISTEN_PORT); |
|
74 | 72 |
printf("Setting listener port to %d\n", DEFAULTPORT); |
75 | 73 |
optionsG.listen_port = DEFAULTPORT; |
76 | 74 |
} |
... | ... | |
78 | 76 |
case 'w': |
79 | 77 |
/* Set wireless port */ |
80 | 78 |
strcpy(optionsG.wireless_port, optarg); |
79 |
printf("Wireless port set to %s.\n", optionsG.wireless_port); |
|
81 | 80 |
break; |
82 | 81 |
case 'l': |
83 | 82 |
/* Set log filename (and enable logging) */ |
Also available in: Unified diff