sources/main.cpp

branch
protocol5
changeset 159
970d58a01e8b
parent 156
ce66d7e374bf
child 189
248d0b85cbda
equal deleted inserted replaced
155:9f71f854474a 159:970d58a01e8b
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