Networking library

Seb seb at wilzba.ch
Thu Mar 15 05:51:28 UTC 2018


On Thursday, 15 March 2018 at 00:10:28 UTC, Cecil Ward wrote:
> On Thursday, 15 March 2018 at 00:06:49 UTC, Cecil Ward wrote:
>> Can anyone point me in the direction of a library that 
>> provides very very lightweight (minimum overhead) asynchronous 
>> i/o routines for - shopping list
>>
>> [...]
>
> Actually I realise that if I could simply write a wrapper 
> pretty easily, with suitable help, then C libraries could be 
> included in the list of candidates, but only if I can get the 
> necessary help in writing a D-toC & C-to-D safe wafer-thin 
> wrapper layer.

A pure D solution: https://github.com/ikod/dlang-requests

(though I think it doesn't support everything on your list yet)

Another pure D solution is Vibe.d - have a look at 
http://vibed.org/api/vibe.core.net/listenTCP

While Phobos's high-level wrapper std.net.curl probably don't 
provide what you are looking for, the low-level curl might:

https://dlang.org/phobos/etc_c_curl.html

You would need to manually wrap the curl calls into an 
asynchronous handler though there are quite a few eventloop 
implementations on the dub registry.


More information about the Digitalmars-d-learn mailing list