<div dir="ltr"><div><div>Thank you, guys, for the comments.<br><br></div>I am still staggelling with gen_tcp. It is clear how to use gen_udp for this purpose, but not clear what to do with gen_tcp.<br><br>[taras@dev1 ~]$ erl<br>Erlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]<br><br>Eshell V8.1 (abort with ^G)<br>1> {ok, S1} = gen_tcp:connect({local, <<"/var/run/docker.sock">>}, 0, [local]). <br>{ok,#Port<0.448>}<br>3> gen_tcp:send(S1, <<"http:/containers/json">>). <br>ok<br>4> A = gen_tcp:recv(S1,0). <br>{error,einval}<br>5> <br><br></div>I don't get how to receive an answer from TCP unix socket. <br>Should I create one more socket (to listen it) and somehow link them?<br><div><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"></span><br><span class="gmail-"></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
</span>I should pass all options through to gen_tcp, so it is not impossible that<br>
it can handle the 'local' address family. Give it a try!<br></blockquote><div><br></div><div>Would be nice to see it in httpc as well!<br></div><div> <br></div></div>Best regards,<br><br></div><div class="gmail_extra">Taras<br></div></div></div>