156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
return b;
}
int
main(int argc, char *argv[])
{
int uprate = 0, maxcl = 4;
char *sdesc = "", *ip = "", *master = NULL, *passwd = "";
for (int i = 1; i < argc; i++) {
char *a = &argv[i][2];
if (argv[i][0] == '-')
switch (argv[i][1]) {
case 'u':
uprate = atoi(a);
|
|
|
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
return b;
}
int
main(int argc, char *argv[])
{
int uprate = 0, maxcl = 4;
const char *sdesc = "", *ip = "", *master = NULL, *passwd = "";
for (int i = 1; i < argc; i++) {
char *a = &argv[i][2];
if (argv[i][0] == '-')
switch (argv[i][1]) {
case 'u':
uprate = atoi(a);
|
187
188
189
190
191
192
193
194
195
196
197
|
default:
printf("WARNING: unknown commandline option\n");
}
}
if (enet_initialize() < 0)
fatal(@"Unable to initialise network module");
initserver(true, uprate, @(sdesc), @(ip), @(master), @(passwd), maxcl);
return 0;
}
#endif
|
|
>
|
187
188
189
190
191
192
193
194
195
196
197
198
|
default:
printf("WARNING: unknown commandline option\n");
}
}
if (enet_initialize() < 0)
fatal(@"Unable to initialise network module");
initserver(true, uprate, @(sdesc), @(ip),
(master != NULL ? @(master) : nil), @(passwd), maxcl);
return 0;
}
#endif
|