Non-blocking UDP calls using std.socket

2014-12-17 Thread Andre Artus via Digitalmars-d-learn
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

Re: Non-blocking UDP calls using std.socket

2014-12-17 Thread Rikki Cattermole via Digitalmars-d-learn
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

Re: Non-blocking UDP calls using std.socket

2014-12-17 Thread Daniel Kozák via Digitalmars-d-learn
V Wed, 17 Dec 2014 08:20:42 + Andre Artus via Digitalmars-d-learn 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 s

Re: Non-blocking UDP calls using std.socket

2014-12-17 Thread Andre Artus via Digitalmars-d-learn
-- snip -- Have you looked at vibe.d? https://github.com/rejectedsoftware/vibe.d/blob/master/examples/udp/source/app.d Thanks Rikki, I saw that before, but I was left with the impression that its doing blocking calls in a thread (which could very well be the simplest answer). I'll give it a

Re: Non-blocking UDP calls using std.socket

2014-12-17 Thread Andre Artus via Digitalmars-d-learn
-- snip -- https://github.com/etcimon/libasync http://code.dlang.org/packages/libevent http://code.dlang.org/packages/libev http://code.dlang.org/packages/libuv Thanks Daniel, These links look interesting. Perhaps libasync could do the trick.

Re: Non-blocking UDP calls using std.socket

2014-12-17 Thread via Digitalmars-d-learn
On Wednesday, 17 December 2014 at 09:37:47 UTC, Andre Artus wrote: -- snip -- Have you looked at vibe.d? https://github.com/rejectedsoftware/vibe.d/blob/master/examples/udp/source/app.d Thanks Rikki, I saw that before, but I was left with the impression that its doing blocking calls in a th