Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 29, 2015 No Unix socket support? | ||||
---|---|---|---|---|
| ||||
Is there no Unix socket support in Phobos? Or vibe? Or any other library? I've found some discussions: * https://issues.dlang.org/show_bug.cgi?id=9384 * http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/10870/ , but it seems there are no support yet. |
July 29, 2015 Re: No Unix socket support? | ||||
---|---|---|---|---|
| ||||
Posted in reply to simendsjo | On Wednesday, 29 July 2015 at 13:39:33 UTC, simendsjo wrote: > Is there no Unix socket support in Phobos? Or vibe? Or any other library? > I've found some discussions: > * https://issues.dlang.org/show_bug.cgi?id=9384 > * http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/10870/ > > , but it seems there are no support yet. With the exception of the abstract type [1] it should work just fine. [1] http://man7.org/linux/man-pages/man7/unix.7.html |
July 29, 2015 Re: No Unix socket support? | ||||
---|---|---|---|---|
| ||||
Posted in reply to simendsjo | On Wed, Jul 29, 2015 at 01:39:31PM +0000, simendsjo via Digitalmars-d-learn wrote: > Is there no Unix socket support in Phobos? No, there's plenty of support. Just use a unix address when making a socket. I used it in my terminal emulator: https://github.com/adamdruppe/terminal-emulator/blob/master/attach.d#L523 |
July 29, 2015 Re: No Unix socket support? | ||||
---|---|---|---|---|
| ||||
Posted in reply to simendsjo | On Wednesday, 29 July 2015 at 13:39:33 UTC, simendsjo wrote:
> Is there no Unix socket support in Phobos? Or vibe? Or any other library?
> I've found some discussions:
> * https://issues.dlang.org/show_bug.cgi?id=9384
> * http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/10870/
>
> , but it seems there are no support yet.
I defined a module with "class UnixAddress: Address{}" and "class UnixSocket: Socket{}" and made a small implementation 2 years ago. It still works perfectly. If interested, I can post it here. It is 69 lines only.
|
Copyright © 1999-2021 by the D Language Foundation