Non-blocking UDP calls using std.socket

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 17 05:04:30 PST 2014


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 thread (which could very well be the 
> simplest answer). I'll give it a bash.

It uses fibers to make it look as if it were a synchronous, 
blocking API, but under the hood it does asynchronous, 
non-blocking calls in an event loop.


More information about the Digitalmars-d-learn mailing list