Looking at the source code, disconnect/1 is simply implemented as the
dual to connect_node/1, whereas connect/1 (also undocumented) is doing
some extra stuff on top of what connect_node/1 does. I suggest
submitting a patch that implements net_kernel:disconnect_node/1 as doing
exactly what disconnect/1 does today, and add it to the documentation.
This allows disconnect/1 to stay undocumented so it can be tweaked for
whatever internal purposes OTP are using it for in the future without
affecting user code.
/Richard
On 05/24/2012 12:19 AM, Matthew Evans wrote:
> I guess I can use the undocumented function net_kernel:disconnect/1
>
>
>
> ------------------------------------------------------------------------