Packages

This module replaces the standard `:inet_tcp_dist` from Erlang and introduces a new callback. The EPMD module is required to have `address_and_port_please(node)` implemented which should return `{ip, port}`. It is not checked during compilation since the callback is done dynamically.

Current section

Files

Jump to
inet_tcp_dist lib eapmd node.ex
Raw

lib/eapmd/node.ex

defmodule EAPMD.Node do
@moduledoc """
Struct to descibe a node. It needs to be updated to be of better use.
"""
defstruct ip: nil, # ip of node
port: -1, # port of node
name: nil, # name of node
domain: nil
end