V Wed, 17 Dec 2014 08:20:42 +0000 Andre Artus via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> napsáno:
> 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 https://github.com/etcimon/libasync http://code.dlang.org/packages/libevent http://code.dlang.org/packages/libev http://code.dlang.org/packages/libuv