Lines Matching refs:pset
63 struct pollfd pset[2];
231 if (sendto(pset[0].fd, buf, p-buf, 0, (struct sockaddr*)&sll, sizeof(sll)) < 0)
488 n = recvfrom(pset[0].fd, buf, sizeof(buf), MSG_DONTWAIT,
752 pset[0].fd = socket(PF_PACKET, SOCK_DGRAM, 0);
753 if (pset[0].fd < 0) {
764 if (bind(pset[0].fd, (struct sockaddr*)&sll, sizeof(sll)) < 0) {
774 pset[1].fd = rth.fd;
808 pset[0].events = EVENTS;
809 pset[0].revents = 0;
810 pset[1].events = EVENTS;
811 pset[1].revents = 0;
828 if (poll(pset, 2, 30000) > 0) {
830 if (pset[0].revents&EVENTS)
832 if (pset[1].revents&EVENTS)