From 3d70cee4034e4da37d125679345aa2a10c58cb34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= The net kernel is a system process, registered as
- An Erlang node is started using the command line flag
+ An Erlang node is started using command-line flag
It is also possible to call If the node is started with the command line flag If the node is started with command-line flag $ erl -sname foobar
+
+$ erl -sname foobar
1> net_kernel:start([foobar, shortnames]).
+
+1> net_kernel:start([foobar, shortnames]).
{ok,<0.64.0>}
(foobar@gringotts)2>
-
Normally, connections are established automatically when
another node is referenced. This functionality can be disabled
- by setting the Kernel configuration parameter
+ by setting
Which nodes are allowed to communicate with each other is handled
- by the magic cookie system, see
-
Which nodes that are allowed to communicate with each other is handled
+ by the magic cookie system, see section
+
Establishes a connection to
Establishes a connection to
Gets
Defined return values (
The local node is not alive.
The calling process subscribes or unsubscribes to node
status change messages. A
If
If
As of
As from
Note, that this is not guaranteed for
Notice that this is not guaranteed for
As of
As from
As of
As from
Note, that this is not guaranteed for
Notice that this is not guaranteed for
The format of the node status change messages depends on
-
{nodeup, Node} | {nodedown, Node}
Node = node()
- If
If
{nodeup, Node, InfoList} | {nodedown, Node, InfoList}
Node = node()
InfoList = [{Tag, Val}]
Also, when
Also, when
Currently valid values for
Valid values for
Subscribe to node status change messages for visible
nodes only. The tuple
Subscribe to node status change messages for hidden
nodes only. The tuple
Subscribe to node status change messages for both
visible and hidden nodes. The tuple
-
The tuple
The connection setup failed (after
No network is available.
The
Unspecified connection shutdown.
The connection was closed.
The connection was disconnected (forced from the + current node).
Net tick time-out.
Failed to send net tick over the connection.
Status information retrieval from the
Gets
Currently defined return values (
The local node is not alive.
-Sets
Some definitions:
The time of the least number of consecutive
The time of the least number of consecutive
If
If
+
The
The
Returns one of the following:
The request was ignored; because,
-
The request is ignored because
+
Note that the argument is a list with exactly one, two or
- three arguments.
Turns a non-distributed node into a distributed node by
starting
Notice that the argument is a list with exactly one, two, or
+ three arguments.
Turns a distributed node into a non-distributed node. For
other nodes in the network, this is the same as the node
- going down. Only possible when the net kernel was started
- using