Cylix / tacopie

C++ TCP Library - NO LONGER MAINTAINED
MIT License
379 stars 133 forks source link

change select with poll or epoll #45

Open biaochen opened 6 years ago

biaochen commented 6 years ago

select is used as the I/O multiplexing tool, can it be changed with poll or epoll

Cylix commented 6 years ago

Hi,

originally this library was based on poll. However, the problem was that Windows implementation of poll is... buggy. So I changed to select which works perfectly fine.

One improvement would be to switch back to poll on unix and keep poll for windows platform, but I lack of time to do so at the moment. However PR are welcomed :)

Best