Skip to content

mickel8/quic_dist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quic_dist

QUIC carrier for Erlang Distribution Protocol.

Build

$ rebar3 compile

Test

Tested on OTP 26 e7e79d8b8b1ec4a97a1940a685b0bb44388c2477

Node names must be in form of 'port@ip'. EPMD cannot be used as it requires TCP.

# shell 1

$ ERL_FLAGS="-proto_dist quic -no_epmd -config sys" rebar3 shell
1> application:ensure_all_started(quic_dist).
{ok,[quicer,quic_dist]}
2> application:set_env([{quic_dist, [{cert, "/path/to/cert.pem"}, {key, "/path/to/key.pem"}]}]).
ok
3> net_kernel:start('5555@127.0.0.1', #{}).
{ok,<0.182.0>}
(5555@127.0.0.1)4> net_adm:ping('4444@127.0.0.1').
pong
(5555@127.0.0.1)5> net_adm:ping('4444@127.0.0.1').
pong
(5555@127.0.0.1)6> net_adm:ping('4444@127.0.0.1').
pong
(5555@127.0.0.1)7> net_adm:ping('4444@127.0.0.1').
pong
(5555@127.0.0.1)8> spawn('4444@127.0.0.1', fun () -> erlang:display(hello) end).
<13800.205.0>
(5555@127.0.0.1)9>
# shell 2

$ ERL_FLAGS="-proto_dist quic -no_epmd -config sys" rebar3 shell
Eshell V13.0  (abort with ^G)
1> application:ensure_all_started(quic_dist).
{ok,[quicer,quic_dist]}
2> application:set_env([{quic_dist, [{cert, "/path/to/cert.pem"}, {key, "/path/to/key.pem"}]}]).
ok
3> net_kernel:start('4444@127.0.0.1', #{}).
{ok,<0.182.0>}
(4444@127.0.0.1)4> net_adm:ping('5555@127.0.0.1').
pong
(4444@127.0.0.1)5> net_adm:ping('5555@127.0.0.1').
pong
(4444@127.0.0.1)6> net_adm:ping('5555@127.0.0.1').
pong
(4444@127.0.0.1)7> hello

(4444@127.0.0.1)7>

Architecture

Supported platforms

Limited to platforms supported by quicer.

Resources

Most important

Additional

About

QUIC carrier for Erlang Distribution Protocol

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages