www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - No Unix socket support?

reply "simendsjo" <simendsjo gmail.com> writes:
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.
Jul 29 2015
next sibling parent "Dragos Carp" <dragoscarp gmail.com> writes:
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
Jul 29 2015
prev sibling next sibling parent via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
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
Jul 29 2015
prev sibling parent "tcak" <1ltkrs+3wyh1ow7kzn1k sharklasers.com> writes:
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.
Jul 29 2015