Open
Conversation
0f51acd to
c064507
Compare
1757a7d to
95adb66
Compare
95adb66 to
717b6ca
Compare
Contributor
Author
|
@pguyot this was the telegram back then: https://t.me/atomvm/23124/27019 - would be great to have these options one way or another.. |
717b6ca to
e0f89c3
Compare
2ea072f to
4545b7d
Compare
Collaborator
|
My only concern is that these options relate to IP-based modules only. We could move forward with this but at some point we should instead have something like a |
880ef48 to
68731e5
Compare
4c9c16f to
9efa79e
Compare
Add listen/2 accepting a generic options map, making the interface
transport-agnostic. Port range iteration (dist_listen_min/dist_listen_max)
is handled inside socket_dist rather than net_kernel.
net_kernel passes dist_opts opaquely to ProtoDist:listen/2, so no
net_kernel changes are needed when adding future dist module options.
Usage:
net_kernel:start(mynode, #{
name_domain => shortnames,
dist_opts => #{dist_listen_min => 9100, dist_listen_max => 9110}
}).
Signed-off-by: Peter M <petermm@gmail.com>
9efa79e to
3b374a6
Compare
pguyot
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Similar to erlang inet_dist_listen_min/max.
https://www.erlang.org/doc/apps/kernel/kernel_app.html#inet_dist_listen
Needed for certain gateways/port forwarding scenarios.
Namely running local Wokwi simulator and connecting to that.
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later