Caravan.Epmd (caravan v1.0.1)

Shared logic for determining the Erlang distribution port from the node name.

Summary

Functions

Returns the Erlang Distribution port based on a node name.

Functions

dist_port(name)

Returns the Erlang Distribution port based on a node name.

Examples

iex> Caravan.Epmd.dist_port(:"app-name3434@example.net")
3434

iex> Caravan.Epmd.dist_port(:"app-name-4834@example.net")
4834