Rust Implementation of Erlang Distribution Protocol
Rust Implementation of Erlang Distribution Protocol.
The distribution protocol is used to communicate with distributed erlang nodes.
Gets a node entry from EPMD:
use erl_dist::epmd::{DEFAULT_EPMD_PORT, EpmdClient};
// Connect to the local EPMD.
let connection = TcpStream::connect(("localhost", DEFAULT_EPMD_PORT)).await?;
let client = EpmdClient::new(connection);
// Get the information of a node.
let node_name = "foo";
if let Some(node) = client.get_node(node_name).await? {
println!("Found: {:?}", node);
} else {
println!("Not found");
}Sends a message to an Erlang node:
…Example commands:
No open issues yet, or sync has not completed.