<div dir="ltr"><div><div><div><div><div><div>Hey guys,<br><br></div>I would like to try the experimental feature of v19 -- unix sockets, but cannot get how it should be used. For example, if I send some request to docker with gen_udp, then I will get  {error,eprototype}:<br><br>[taras@dev1 ~]$ erl<br>Erlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]<br><br>Eshell V8.1  (abort with ^G)<br>1> {ok, Sockout} = gen_udp:open(0, [{ifaddr, {local, "/tmp/testsockout"}}]).<br>{ok,#Port<0.413>}<br>2> gen_udp:send(Sockout, {local, "/var/run/docker.sock"}, 0, "http:/containers/json").<br>{error,eprototype}<br>3> <br><br></div>The socket is available and accessable by the user. Say, this works fine:<br><br>curl --unix-socket /var/run/docker.sock http:/containers/json<br><br></div>Any idea what is going wrong there? <br><br>I will appreciate if someone points me to any documentation (I know the final description of the feature is not ready for now, but maybe there is some draft already exists?).<br><br></div>Also do you know if httpc module supports the unix sockets since 19.0? If yes, how to do the same with httpc?<br><br></div>Best regards,<br><br></div>Taras<br></div>