sources/main.cpp

changeset 156
ce66d7e374bf
parent 138
c909c38ca886
child 189
248d0b85cbda
equal deleted inserted replaced
154:9cdd6b71f0d1 156:ce66d7e374bf
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()->socket()->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