www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - I wrote a little socket tutorial

reply Adam D. Ruppe <destructionator gmail.com> writes:
A lot of people ask me how to use sockets in Phobos, so I wrote 
it up with a few samples. Not every detail you could ever need, 
but I tried to be reasonably comprehensive for new users.

http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html
Nov 12 2019
next sibling parent Soulsbane <paul acheronsoft.com> writes:
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote:
 A lot of people ask me how to use sockets in Phobos, so I wrote 
 it up with a few samples. Not every detail you could ever need, 
 but I tried to be reasonably comprehensive for new users.

 http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html
Thanks Adam it's just what I was looking for!
Nov 13 2019
prev sibling next sibling parent Martin Tschierschke <mt smartdolphin.de> writes:
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote:
 A lot of people ask me how to use sockets in Phobos, so I wrote 
 it up with a few samples. Not every detail you could ever need, 
 but I tried to be reasonably comprehensive for new users.

 http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html
Thank you! I would like to ask you and other writers of tutorials, to place them in the D wiki. [1] I have put it already under the General section, maybe you would like to move it elsewhere. Or directly in the Articles section? [2] Recently many new tutorials were published and they should be more visible then just in the Announce Forum. [1] https://wiki.dlang.org/Articles [2] https://dlang.org/articles/index.html
Nov 13 2019
prev sibling next sibling parent SrMordred <patric.dexheimer gmail.com> writes:
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote:
 A lot of people ask me how to use sockets in Phobos, so I wrote 
 it up with a few samples. Not every detail you could ever need, 
 but I tried to be reasonably comprehensive for new users.

 http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html
Thanks u very much! I remember being one of the things that I felt missing when first started with D!
Nov 13 2019
prev sibling next sibling parent reply bauss <jj_1337 live.dk> writes:
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote:
 A lot of people ask me how to use sockets in Phobos, so I wrote 
 it up with a few samples. Not every detail you could ever need, 
 but I tried to be reasonably comprehensive for new users.

 http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html
Back when I first started D I wish this existed because there was virtually nothing regarding sockets back then. It would have helped me a lot in terms of using it. Great tutorial, 10/10.
Nov 15 2019
parent reply JN <666total wp.pl> writes:
On Friday, 15 November 2019 at 18:41:02 UTC, bauss wrote:
 On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe 
 wrote:
 A lot of people ask me how to use sockets in Phobos, so I 
 wrote it up with a few samples. Not every detail you could 
 ever need, but I tried to be reasonably comprehensive for new 
 users.

 http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html
Back when I first started D I wish this existed because there was virtually nothing regarding sockets back then. It would have helped me a lot in terms of using it. Great tutorial, 10/10.
I used this to get started back in the day: http://arsdnet.net/dcode/book/chapter_02/03/
Nov 15 2019
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 15 November 2019 at 19:40:51 UTC, JN wrote:
 I used this to get started back in the day: 
 http://arsdnet.net/dcode/book/chapter_02/03/
yeah, that's one of the samples from my "D Cookbook" and I wrote this new thing primarily to expand upon the text there from the book (which was minimal).
Nov 15 2019
parent reply JN <666total wp.pl> writes:
On Friday, 15 November 2019 at 20:01:01 UTC, Adam D. Ruppe wrote:
 On Friday, 15 November 2019 at 19:40:51 UTC, JN wrote:
 I used this to get started back in the day: 
 http://arsdnet.net/dcode/book/chapter_02/03/
yeah, that's one of the samples from my "D Cookbook" and I wrote this new thing primarily to expand upon the text there from the book (which was minimal).
Such code snippets are amazing for starting out. Too many libraries just throw the API documentation at you and figure out how to set up things. Especially in non-OOP languages, with OOP the dependencies kinda flow much better (oh, for this I need object of this class, so I make this, oh and now I need this object).
Nov 15 2019
parent Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 15 November 2019 at 21:07:45 UTC, JN wrote:
 Such code snippets are amazing for starting out. Too many 
 libraries just throw the API documentation at you and figure 
 out how to set up things.
Aye. That's why my doc gen actually has hidden secret features to make *complete* examples inside D's documented unittest thing. I've written a bunch of basic games with my other libs, a big one I always point newbies to is the pong sample: http://dpldocs.info/experimental-docs/arsd.simpledisplay.html#pong and my view is it is more fun to copy/paste something that actually works, then modify it to make it your own. (the blog btw is built with my doc gen too, and the socket samples are all D unittests using my special features so I can compile and run it as well, my way of making sure my stuff actually compiled lol)
Nov 15 2019
prev sibling parent Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote:
 A lot of people ask me how to use sockets in Phobos, so I wrote 
 it up with a few samples. Not every detail you could ever need, 
 but I tried to be reasonably comprehensive for new users.

 http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html
Very nice tutorial. Absolutely it is worth it to bookmark.
Nov 16 2019