Non-blocking UDP calls using std.socket
    Andre Artus via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Dec 17 00:20:42 PST 2014
    
    
  
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
    
    
More information about the Digitalmars-d-learn
mailing list