D Lang Socket Programming Example

Adam D. Ruppe destructionator at gmail.com
Fri Sep 6 14:19:50 PDT 2013


On Friday, 6 September 2013 at 21:02:09 UTC, Ali Çehreli wrote:
> Here is a Phobos translation:
>
>     server.bind(new InternetAddress(8080));

Not quite the same - the original used a Unix domain socket. I 
*think* if you replace that line with a UnixAddress:

http://dlang.org/phobos/std_socket.html#UnixAddress

It will do the trick. (I say *think* because I've never actually 
used a unix socket with D, so I'm not entirely sure.)


More information about the Digitalmars-d mailing list