std.socket tutorials? examples?

Chris Katko ckatko at gmail.com
Thu Oct 4 09:54:40 UTC 2018


On Thursday, 4 October 2018 at 08:52:28 UTC, Andrea Fontana wrote:
> On Thursday, 4 October 2018 at 08:32:13 UTC, Chris Katko wrote:
>> I've been Google'ing and there's like... nothing out there.
>>
>> One of the top results for "std.socket dlang examples"... is 
>> for TANGO. That's how old it is.
>
> Socket paradigm is quite standard across languages.
>
> Anyway you can find a couple of example here:
> https://github.com/dlang/dmd/blob/master/samples/listener.d
> https://github.com/dlang/dmd/blob/master/samples/htmlget.d
>
> Andrea

I was hoping someone would have a walk-through or something. 
Those examples are 110 lines each!

Usually, with D, there's plenty of useful 
paradigms/templates/Phobos magic. So if I just port a C/C++/C# 
socket example over, how am I supposed to know if I'm doing it 
"the right/proper/best way" in D? That kind of thing.


More information about the Digitalmars-d-learn mailing list