aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src/alt_dist.xml
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-06-30 16:34:26 +0200
committerRickard Green <[email protected]>2017-08-28 14:42:44 +0200
commit87677f64629f1f738e132659c445c3431b02c0b2 (patch)
treeba5d4a57f36f10a1b755b2ecc9edf8e12eeb0db1 /erts/doc/src/alt_dist.xml
parent78fad16ef7c5477239bc0b51125fabfe6567039d (diff)
downloadotp-87677f64629f1f738e132659c445c3431b02c0b2.tar.gz
otp-87677f64629f1f738e132659c445c3431b02c0b2.tar.bz2
otp-87677f64629f1f738e132659c445c3431b02c0b2.zip
Example of using distribution controller processes
Diffstat (limited to 'erts/doc/src/alt_dist.xml')
-rw-r--r--erts/doc/src/alt_dist.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/erts/doc/src/alt_dist.xml b/erts/doc/src/alt_dist.xml
index 3d87e9dcdb..300f75dc13 100644
--- a/erts/doc/src/alt_dist.xml
+++ b/erts/doc/src/alt_dist.xml
@@ -64,6 +64,11 @@
etc in this example). That is, depending on what you want
to do you perhaps do not need to implement a driver at all
and can then skip the driver related sections below.
+ The <c>gen_tcp_dist</c> example described in the
+ <seealso marker="#distribution_module">Distribution
+ Module</seealso> section utilize distribution controller
+ processes and can be worth having a look at if you want to
+ use distribution controller processes.
</p></note>
<section>
@@ -181,6 +186,15 @@
ignore exit signals. It is allowed to trap exits, but it should
then voluntarily terminate when an exit signal is received.
</p>
+ <p>
+ An example implementation of a distribution module can be found
+ in
+ <url href="gen_tcp_dist.erl">$ERL_TOP/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl</url>.
+ It implements the distribution over TCP/IP using the <c>gen_tcp</c>
+ API with distribution controllers implemented by processes. This
+ instead of using port distribution controllers as the ordinary TCP/IP
+ distribution uses.
+ </p>
<section>
<marker id="distribution_module_exported_callback_functions"/>