summaryrefslogtreecommitdiff
path: root/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_dist_ctrl_input_handler_2_func.txt
blob: 0e8202aa109de282f183d000b92347db5b24d504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

  -spec erlang:dist_ctrl_input_handler(DHandle, InputHandler) -> ok
                                          when
                                              DHandle :: dist_handle(),
                                              InputHandler :: pid().

Since:
  OTP 21.0

  Register an alternate input handler process for the distribution
  channel identified by DHandle. Once this function has been
  called, InputHandler is the only process allowed to call 
  erlang:dist_ctrl_put_data(DHandle, Data) with the DHandle
  identifying this distribution channel.

  Note:
    Only the process registered as distribution controller for the
    distribution channel identified by DHandle is allowed to
    call this function.

  This function is used when implementing an alternative
  distribution carrier using processes as distribution controllers. 
  DHandle is retrieved via the callback f_handshake_complete.
  More information can be found in the documentation of ERTS User's
  Guide ➜ How to implement an Alternative Carrier for the Erlang
  Distribution ➜ Distribution Module.