On 17/12/2014 9:20 p.m., Andre Artus wrote:
I've written a small program that uses UdpSocket (std.socket) to query a
DNS server for selected records.
It works as expected, but I would like to try a non-blocking approach.
The last time I wrote socket code (without a supporting library) was
over a decade ago, and even then it was not my forté.
Does anyone know of a cross-platform (Mac, Win, *nix) D library that
encapsulates the asynchronous calls in a simple API?
If I'm missing something in std.socket (that does the [non-blocking]
trick) I would appreciate it being pointed out to me.
And, if it's not too much trouble, I would appreciate a code snippet or
link to a sample.
Thanks,
Andre Artus
Have you looked at vibe.d?
https://github.com/rejectedsoftware/vibe.d/blob/master/examples/udp/source/app.d