<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I did implement this a while ago</div><div><br></div><a href="https://github.com/tonyrog/afunix">https://github.com/tonyrog/afunix</a><div><br></div><div>It is basically a specialized version of inet driver, using the same internal protocol and register in a </div><div>way the gen_tcp api may be used directly. The drawback with this a approach is of course that this</div><div>driver must be updated every time the inet driver is updated, but I can not really se any other way</div><div>of doing this right now.</div><div><br></div><div>The api is very simple (afunix still lack any kind of documentation) and </div><div>differ from gen_tcp only in the listen and connect functions.</div><div><br></div><div>afunix:listen(Name, Options)</div><div>afunix:connect(Name, Options)</div><div><br></div><div>The afunix specific functions are</div><div><br></div><div>afunix:get_peercred(Socket)</div><div>afunix:get_peerid(Socket)</div><div><br></div><div>Hope that it can be useful.</div><div><br></div><div>/Tony</div><div><br></div><div><br><div><div>On 21 mar 2014, at 05:32, Michael Truog <<a href="mailto:mjtruog@gmail.com">mjtruog@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I also am disappointed that unix domain
sockets lack support, but I am also disappointed there are more
internal checks to prevent their use now. I have been able to
graft on support, but it isn't pretty (since it needs to avoid the
internal prim_inet checks):<br>
<a class="moz-txt-link-freetext" href="https://github.com/CloudI/CloudI/blob/master/src/lib/cloudi_core/src/cloudi_services_external.erl#L1342-L1375">https://github.com/CloudI/CloudI/blob/master/src/lib/cloudi_core/src/cloudi_services_external.erl#L1342-L1375</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/CloudI/CloudI/blob/master/src/lib/cloudi_core/cxx_src/cloudi_socket_drv.cpp">https://github.com/CloudI/CloudI/blob/master/src/lib/cloudi_core/cxx_src/cloudi_socket_drv.cpp</a><br>
<br>
When I add unix domain sockets this way, I do get an internal ERTS
thread stuck at 100% CPU (somehow stuck in a tight loop) for
unknown reasons, but it works fine otherwise.<br>
<br>
On 03/19/2014 04:13 PM, James wrote:<br>
</div>
<blockquote cite="mid:67cd4667-b605-4fb6-a058-28ad07a24b98@googlegroups.com" type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div><br>
</div>
five years later... and there is still no support for uds, only
the uds_dist example, which does not even build on linux as it
was evidently created for solaris.
<div><br>
<div><br>
</div>
<div><br>
<div><br>
On Wednesday, March 4, 2009 5:23:21 AM UTC-5, rvirding
wrote:
<blockquote class="gmail_quote">I just saw a lament in
twitter that Erlang doesn't support Unix domain sockets.
Is that so? If not is there a nice link to some
documentation explaining that we do and how to do it?<br>
<br>
Robert<br>
<br>
</blockquote>
</div>
</div>
</div>
</div>
-- <br>
Remember to send a copy to erlang (dot) questions (at) erlang
(dot) org when posting.<br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Erlang Programming" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true" href="mailto:erlang-programming+unsubscribe@googlegroups.com">erlang-programming+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a moz-do-not-send="true" href="mailto:erlang-programming@googlegroups.com">erlang-programming@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true" href="http://groups.google.com/group/erlang-programming">http://groups.google.com/group/erlang-programming</a>.<br>
For more options, visit <a moz-do-not-send="true" href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</div>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">"Installing applications can lead to corruption over time. </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>