458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
|
/* Run process */
int main(int argc, char **argv) {
int port = PORT, thread_count = THREAD_COUNT;
const char *bind_addr = BIND_ADDR;
int init_ret;
int fd;
/* Ignore */
argc = argc;
argv = argv;
/* Create listening socket */
fd = filed_listen(bind_addr, port);
if (fd < 0) {
perror("filed_listen");
|
|
|
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
|
/* Run process */
int main(int argc, char **argv) {
int port = PORT, thread_count = THREAD_COUNT;
const char *bind_addr = BIND_ADDR;
int init_ret;
int fd;
/* XXX: TODO: Process arguments */
argc = argc;
argv = argv;
/* Create listening socket */
fd = filed_listen(bind_addr, port);
if (fd < 0) {
perror("filed_listen");
|