inet_tcp_dist v0.1.1 InetTcp_dist

This module replaces the standard :inet_tcp_dist from Erlang and introduces a new function call to replace DNS lookups for Erlang Distribution. The EPMD module is required to have this function implemented. It is not checked during compilation since the callback is done dynamically.

The EPMD module needs to implement address_and_port_please(node). It should give a tuple containing IP and port like this: {ip, port}.

Most callbacks of this module fall back on Erlang’s :inet_tcp_dist. For the ones it doesn’t it has an equal implementation.

It only supports :shortnames currently, which makes sense since we’re not using DNS.

Summary

Functions

accept(listen)
accept_connection(accept_pid, socket, my_node, allowed, setup_time)
close(listen)
do_setup(kernel, node, type, my_node, atom, setup_time)
hs_data(args \\ []) (macro)
hs_data(record, args) (macro)
listen(name)
net_address(args \\ []) (macro)
net_address(record, args) (macro)
select(node)
setup(node, type, my_node, atom, setup_time)