Discussion:
Unix Domain Socket (UDS) TCP server in Erlang
Frank Muller
2021-05-23 19:48:57 UTC
Permalink
Hi guys

I’d like to implement a Unix Domain Socket 'TCP' server in Erlang.

I found this module, which works pretty well:
https://github.com/saleyn/euds#tcp-example

but the author said Erlang 19-RC2 will be shipped with UDS.

Unfortunately, I couldn't found any working TCP server example.

This discussion is interesting but no server example was provided:
https://github.com/erlang/otp/pull/612#issuecomment-248629906

Help appreciated.
/Frank
Roger Lipscombe
2021-05-23 20:06:17 UTC
Permalink
https://ninenines.eu/docs/en/ranch/2.0/guide/listeners/#_listening_on_a_unix_domain_socket
Post by Frank Muller
Hi guys
I’d like to implement a Unix Domain Socket 'TCP' server in Erlang.
https://github.com/saleyn/euds#tcp-example
but the author said Erlang 19-RC2 will be shipped with UDS.
Unfortunately, I couldn't found any working TCP server example.
https://github.com/erlang/otp/pull/612#issuecomment-248629906
Help appreciated.
/Frank
Frank Muller
2021-05-23 20:15:01 UTC
Permalink
Thanks for the pointer Roger.
The new socket module has everything I need.
Post by Roger Lipscombe
https://ninenines.eu/docs/en/ranch/2.0/guide/listeners/#_listening_on_a_unix_domain_socket
Post by Frank Muller
Hi guys
I’d like to implement a Unix Domain Socket 'TCP' server in Erlang.
https://github.com/saleyn/euds#tcp-example
but the author said Erlang 19-RC2 will be shipped with UDS.
Unfortunately, I couldn't found any working TCP server example.
https://github.com/erlang/otp/pull/612#issuecomment-248629906
Help appreciated.
/Frank
Loading...