D Lang Socket Programming Example

Brian Schott briancschott at gmail.com
Fri Sep 6 14:50:10 PDT 2013


On Friday, 6 September 2013 at 21:19:51 UTC, Adam D. Ruppe wrote:
> 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.)

http://d.puremagic.com/issues/show_bug.cgi?id=9384

It won't work. (This is why my project uses IP sockets for local 
communication, even on Linux)


More information about the Digitalmars-d mailing list