exit(EXIT_FAILURE);
}
fdflags(fd, O_NONBLOCK, O_NONBLOCK, FD_CLOEXEC, FD_CLOEXEC);
- sel_initfile(&sel, &udpsock[i].sf, fd, SEL_READ, p_read, 0);
- sel_addfile(&udpsock[i].sf);
- T( trace(T_PEER, "peer: created %s socket", aftab[i].name); )
if (port)
udpsock[i].port = port;
else {
}
udpsock[i].port = lastport = getport(&a);
}
+ T( trace(T_PEER, "peer: created %s socket", aftab[i].name); )
+ sel_initfile(&sel, &udpsock[i].sf, fd, SEL_READ, p_read, 0);
+ sel_addfile(&udpsock[i].sf);
}
}