Equivalent to polling () or WSAPoll () for sockets in D

For socket programming in D, is there an equivalent poll () (or WSAPoll () for windows)? I hope to write a small single-threaded server.

I know that technically you can call C functions from D, and therefore the whole Windows C API is available, but I was hoping for a higher level (possibly even more cross-platform) solution?

+4
source share
1 answer

I believe your best alternative so far is with libev or libevent in Deimos: https://github.com/D-Programming-Deimos .

I will also recommend you take a look at how the VibeD guys do this: http://vibed.org .

+1
source

Source: https://habr.com/ru/post/1393538/


All Articles