erlang: UNIX domain socket support?

后端 未结 4 1235
忘掉有多难
忘掉有多难 2020-12-31 11:18

Is there a way to access UNIX domain sockets (e.g. /var/run/dbus/system_bus_socket ) directly from Erlang without resorting to a third-party driver?

4条回答
  •  滥情空心
    2020-12-31 12:16

    You can use hackney if you want to recieve http response as hackney provides support to UNIX socket . hackney:get<<"http+unix://path_to_ sock_file.sock">>

提交回复
热议问题