Listing peers.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@252 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-02 21:51:40 +00:00
parent 5f102a5dcf
commit bd7849199c
13 changed files with 182 additions and 65 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ Poll::poll() {
timeval timeout = {t / 1000000, t % 1000000};
m_maxFd = select(m_maxFd, &m_readSet, &m_writeSet, &m_exceptSet, &timeout);
m_maxFd = select(m_maxFd + 1, &m_readSet, &m_writeSet, &m_exceptSet, &timeout);
if (m_maxFd >= 0)
return;
work();
else if (errno == EINTR)
m_slotSelectInterrupted();