std.socket tutorials? examples?

Adam D. Ruppe destructionator at gmail.com
Thu Oct 4 12:44:10 UTC 2018


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.

My book has a few examples
https://www.packtpub.com/application-development/d-cookbook


of course, buying it for just std.socket (which is just like one 
page out of the 300) is a bit silly, but the code examples are 
also here

http://arsdnet.net/dcode/book/chapter_02/03/


The code examples have little to no explanation (that's what the 
book is for lol) but std.socket is pretty simple so you can 
probably figure it out - like the others said, it is a very, very 
thin wrapper over the same basic BSD socket library every other 
language uses.

The client example is like 15 lines too so you can use it easily, 
and the server is only like 30 so that isn't too bad either.

The library docs http://dpldocs.info/std.socket can be used to 
look up the specific functions used.


More information about the Digitalmars-d-learn mailing list