Skip to content

A Rust node implemented based on the Erlang distributed protocol

Notifications You must be signed in to change notification settings

trysthout/comboer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

A Rust node implemented based on the Erlang distributed protocol.

How to run the examples

cd crates/server/examples to run the following example.

Preparation

Running server or client depends on the epmd, so we need to start epmd first. Find the path where epmd is located, then run the following command:

${epmd_path} -daemon

eg:

 /usr/lib64/erlang/erts-14.1.1/bin/epmd -daemon

The rust node as a server

Please follow the steps below.

Open a terminal run the following command to start a rust node.

cargo run --example server

for TLS

cargo run --example server --features rustls

Open a terminal run the following command to connect the rust node.

iex --sname a --cookie aaa  client.exs

for TLS

iex --sname a --cookie aaa --erl "-proto_dist inet_tls -ssl_dist_optfile `pwd`/ssl-rust.conf"  client.exs

The rust node as a client

Please follow the steps below.

Open a terminal run the following command to start a elixir node.

iex --sname a --cookie aaa  server.exs

for TLS

 iex --sname a --cookie aaa --erl "-proto_dist inet_tls -ssl_dist_optfile `pwd`/ssl-rust.conf"  server.exs

Open a terminal run the following command to connect the elixir node.

cargo run --example client

for TLS

cargo run --example client --features rustls

About

A Rust node implemented based on the Erlang distributed protocol

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published