82 timeout.tv_sec = 0; |
82 timeout.tv_sec = 0; |
83 timeout.tv_usec = 250000; // 0.25 seconds |
83 timeout.tv_usec = 250000; // 0.25 seconds |
84 FD_ZERO (&fdset); |
84 FD_ZERO (&fdset); |
85 FD_SET (0, &fdset); |
85 FD_SET (0, &fdset); |
86 |
86 |
87 int fd = iface.getSession()->getSocket()->file_descriptor(); |
87 int fd = iface.getSession()->getSocket()->file_descriptor; |
88 highest = zfc::max (highest, fd); |
88 highest = zfc::max (highest, fd); |
89 FD_SET (fd, &fdset); |
89 FD_SET (fd, &fdset); |
90 |
90 |
91 select (highest + 1, &fdset, nullptr, nullptr, &timeout); |
91 select (highest + 1, &fdset, nullptr, nullptr, &timeout); |
92 |
92 |