sources/main.cpp

changeset 189
248d0b85cbda
parent 156
ce66d7e374bf
child 190
90bf9049e5eb
equal deleted inserted replaced
188:5fc32e4b2a8c 189:248d0b85cbda
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

mercurial